From 6edb36816137a6ae2246eb8858fa3453dce8ab79 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 30 Jan 2018 10:13:25 +0100 Subject: [PATCH] Disconnect handler: don't print success message after failure. --- kraftakt.go | 1 + 1 file changed, 1 insertion(+) diff --git a/kraftakt.go b/kraftakt.go index 87b8bf2..4768da8 100644 --- a/kraftakt.go +++ b/kraftakt.go @@ -176,6 +176,7 @@ func fitbitDisconnectHandler(ctx context.Context, w http.ResponseWriter, r *http for _, collection := range []string{"activities", "sleep"} { if err := c.Unsubscribe(ctx, collection); err != nil { errs = append(errs, fmt.Errorf("Unsubscribe(%q) = %v", collection, err)) + continue } log.Infof(ctx, "Successfully unsubscribed from %q", collection) } -- 2.11.0