From: Florian Forster Date: Mon, 22 Jan 2018 19:41:06 +0000 (+0100) Subject: Return errs only if it contains at least one error. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=92426fb862a8e98955cc2e5bb99559c1180a4851;p=kraftakt.git Return errs only if it contains at least one error. --- diff --git a/gfitsync.go b/gfitsync.go index 65cbfa6..5bb80fc 100644 --- a/gfitsync.go +++ b/gfitsync.go @@ -296,5 +296,9 @@ func handleNotification(ctx context.Context, s *fitbit.Subscription) error { }() wg.Wait() - return errs + + if len(errs) != 0 { + return errs + } + return nil }