Commit 5ae77034 authored by Sam Rawlins's avatar Sam Rawlins Committed by Michael Goderbauer

Self-execute closure passed to assert (#14235)

parent 8059aea3
......@@ -342,7 +342,7 @@ class RefreshIndicatorState extends State<RefreshIndicator> with TickerProviderS
library: 'material library',
));
return true;
});
}());
if (refreshResult == null)
return;
refreshResult.whenComplete(() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment