Skip to content

Commit

Permalink
hashicorp#931 remove .Send() and ajust if-statement to be more compact
Browse files Browse the repository at this point in the history
  • Loading branch information
hussfelt committed Dec 12, 2017
1 parent 7da17fe commit d342b41
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions aws/resource_aws_ses_identity_notification.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ func resourceAwsSesNotificationSet(d *schema.ResourceData, meta interface{}) err

log.Printf("[DEBUG] Setting SES Identity Notification: %#v", setOpts)

_, err := conn.SetIdentityNotificationTopic(setOpts).Send()

if err != nil {
if _, err := conn.SetIdentityNotificationTopic(setOpts); err != nil {
return fmt.Errorf("Error setting SES Identity Notification: %s", err)
}

Expand Down Expand Up @@ -111,9 +109,7 @@ func resourceAwsSesNotificationDelete(d *schema.ResourceData, meta interface{})

log.Printf("[DEBUG] Deleting SES Identity Notification: %#v", setOpts)

_, err := conn.SetIdentityNotificationTopic(setOpts).Send()

if err != nil {
if _, err := conn.SetIdentityNotificationTopic(setOpts); err != nil {
return fmt.Errorf("Error deleting SES Identity Notification: %s", err)
}

Expand Down

0 comments on commit d342b41

Please sign in to comment.