--- a/notifications.go Wed Apr 12 23:58:34 2017 +0200
+++ b/notifications.go Thu Apr 13 00:00:00 2017 +0200
@@ -63,9 +63,9 @@
func (g *Client) ClearNotifications() error {
req := g.prepareRequest("notifications/clear")
req.Method = rest.Post
- r, err := rest.API(req)
+ _, err := rest.API(req)
if err != nil {
- return notifications, fmt.Errorf("notifications/clear API query: %s", err.Error())
+ return fmt.Errorf("notifications/clear API query: %s", err.Error())
}
return nil // TODO: check returned object (should be empty)