projects
/
kraftakt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92093b3
)
Disconnect handler: don't print success message after failure.
author
Florian Forster
<ff@octo.it>
Tue, 30 Jan 2018 09:13:25 +0000
(10:13 +0100)
committer
Florian Forster
<ff@octo.it>
Tue, 30 Jan 2018 09:13:25 +0000
(10:13 +0100)
kraftakt.go
patch
|
blob
|
history
diff --git
a/kraftakt.go
b/kraftakt.go
index
87b8bf2
..
4768da8
100644
(file)
--- 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)
}