Skip to content

Commit

Permalink
inline struct fields for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
shihanng committed Aug 9, 2018
1 parent b69410c commit 00f99f1
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions github/resource_github_organization_project.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,7 @@ func resourceGithubOrganizationProjectCreate(d *schema.ResourceData, meta interf
n := d.Get("name").(string)
b := d.Get("body").(string)

options := github.ProjectOptions{
Name: n,
Body: b,
}
options := github.ProjectOptions{Name: n, Body: b}

project, _, err := client.Organizations.CreateProject(context.TODO(), o, &options)
if err != nil {
Expand Down Expand Up @@ -86,10 +83,7 @@ func resourceGithubOrganizationProjectUpdate(d *schema.ResourceData, meta interf
n := d.Get("name").(string)
b := d.Get("body").(string)

options := github.ProjectOptions{
Name: n,
Body: b,
}
options := github.ProjectOptions{Name: n, Body: b}

projectID, err := strconv.ParseInt(d.Id(), 10, 64)
if err != nil {
Expand Down

0 comments on commit 00f99f1

Please sign in to comment.