From 54f6693e842c607ec4c9346c5003b4ce8f9e6c4d Mon Sep 17 00:00:00 2001 From: Sam Rawlins Date: Mon, 13 Aug 2018 16:03:07 -0700 Subject: [PATCH] Fix MISSING_RETURN error in concat.dart (#476) * Fix MISSING_RETURN error in concat.dart * Return null instead * dartfmt --- lib/src/async/concat.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/src/async/concat.dart b/lib/src/async/concat.dart index cd02a803..f894cf97 100644 --- a/lib/src/async/concat.dart +++ b/lib/src/async/concat.dart @@ -71,7 +71,10 @@ class _ConcatStream extends Stream { }, onResume: () { if (currentSubscription != null) currentSubscription.resume(); }, onCancel: () { - if (currentSubscription != null) return currentSubscription.cancel(); + if (currentSubscription != null) + return currentSubscription.cancel(); + else + return null; }); nextStream();