Fix missing return statements on function literals (#33058)
This commit is contained in:
committed by
Michael Goderbauer
parent
539ff20384
commit
c2a93bd545
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user