Skip to content
This repository has been archived by the owner on Dec 9, 2020. It is now read-only.

Commit

Permalink
Merge pull request #3 from babbel/remove_the_double_dereferencing
Browse files Browse the repository at this point in the history
remove the double dereferencing
  • Loading branch information
parabolic authored Oct 4, 2018
2 parents a277fb0 + ec3441c commit e34ac9b
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 20 deletions.
2 changes: 1 addition & 1 deletion Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rollbar/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ func configureProvider(d *schema.ResourceData) (interface{}, error) {
return nil, err
}

return &client, nil
return client, nil
}
6 changes: 3 additions & 3 deletions rollbar/resource_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func resourceUserCreate(d *schema.ResourceData, meta interface{}) error {
email := d.Get("email").(string)
teamID := d.Get("team_id").(int)

client := **meta.(**rollbar.Client)
client := meta.(*rollbar.Client)
resp, err := client.InviteUser(teamID, email)
if err != nil {
return err
Expand All @@ -55,7 +55,7 @@ func resourceUserRead(d *schema.ResourceData, meta interface{}) error {
userPresent := false
email := d.Id()
teamID := d.Get("team_id").(int)
client := **meta.(**rollbar.Client)
client := meta.(*rollbar.Client)

listInvites, err := client.ListInvites(teamID)

Expand Down Expand Up @@ -109,7 +109,7 @@ func resourceUserUpdate(d *schema.ResourceData, meta interface{}) error {
func resourceUserDelete(d *schema.ResourceData, meta interface{}) error {
email := d.Id()
teamID := d.Get("team_id").(int)
client := **meta.(**rollbar.Client)
client := meta.(*rollbar.Client)

client.RemoveUserTeam(email, teamID)

Expand Down
5 changes: 4 additions & 1 deletion vendor/github.com/babbel/rollbar-go/rollbar/invites.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 12 additions & 8 deletions vendor/github.com/babbel/rollbar-go/rollbar/rollbar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions vendor/github.com/babbel/rollbar-go/rollbar/test_setup.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 10 additions & 4 deletions vendor/github.com/babbel/rollbar-go/rollbar/users.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e34ac9b

Please sign in to comment.