Return errs only if it contains at least one error.
[kraftakt.git] / gfitsync.go
index 65cbfa6..5bb80fc 100644 (file)
@@ -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
 }