Skip to content

Commit

Permalink
Fix MISSING_RETURN error in concat.dart (#476)
Browse files Browse the repository at this point in the history
* Fix MISSING_RETURN error in concat.dart

* Return null instead

* dartfmt
  • Loading branch information
srawlins authored and yjbanov committed Aug 13, 2018
1 parent a0a2ddc commit 54f6693
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/src/async/concat.dart
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ class _ConcatStream<T> extends Stream<T> {
}, onResume: () {
if (currentSubscription != null) currentSubscription.resume();
}, onCancel: () {
if (currentSubscription != null) return currentSubscription.cancel();
if (currentSubscription != null)
return currentSubscription.cancel();
else
return null;
});

nextStream();
Expand Down

0 comments on commit 54f6693

Please sign in to comment.