Fix previous change
authorMikael Berthe <mikael@lilotux.net>
Thu, 13 Apr 2017 00:00:00 +0200
changeset 97 1d5879af2556
parent 96 5496be0e3d4f
child 98 5d803adfc57e
Fix previous change
notifications.go
--- 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)