Skip to content

Commit

Permalink
Revert email notification change
Browse files Browse the repository at this point in the history
  • Loading branch information
Bowbaq committed Feb 5, 2020
1 parent dc98b05 commit d84bff3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,7 @@ func (c *Client) shareFile(fileID, email string, notify bool) error {
Role: "writer",
Type: "user",
}

req := c.Drive.Permissions.Create(fileID, &perm)
if notify {
req.SendNotificationEmail(true)
}
req := c.Drive.Permissions.Create(fileID, &perm).SendNotificationEmail(notify)

return googleRetry(func() error {
_, err := req.Do()
Expand Down

0 comments on commit d84bff3

Please sign in to comment.