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 7da0e51 commit d3099f1
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions github/resource_github_repository_project.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,7 @@ func resourceGithubRepositoryProjectCreate(d *schema.ResourceData, meta interfac
b := d.Get("body").(string)
r := d.Get("repository").(string)

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

project, _, err := client.Repositories.CreateProject(context.TODO(), o, r, &options)
if err != nil {
Expand Down Expand Up @@ -92,10 +89,7 @@ func resourceGithubRepositoryProjectUpdate(d *schema.ResourceData, meta interfac
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 d3099f1

Please sign in to comment.