From 92426fb862a8e98955cc2e5bb99559c1180a4851 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Mon, 22 Jan 2018 20:41:06 +0100 Subject: [PATCH] Return errs only if it contains at least one error. --- gfitsync.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 } -- 2.11.0