Fix missing return statements on function literals (#33058)

This commit is contained in:
Sam Rawlins
2019-05-20 12:51:57 -07:00
committed by Michael Goderbauer
parent 539ff20384
commit c2a93bd545
7 changed files with 8 additions and 4 deletions

View File

@@ -101,7 +101,7 @@ Future<T> _warnIfSlow<T>({
assert(future != null);
assert(timeout != null);
assert(message != null);
return future..timeout(timeout, onTimeout: () { _log.warning(message); });
return future..timeout(timeout, onTimeout: () { _log.warning(message); return null; });
}
/// A convenient accessor to frequently used finders.