fix upcoming lint avoid_returning_null_for_void (#23190)

This commit is contained in:
Alexandre Ardhuin
2018-10-17 11:01:37 +02:00
committed by GitHub
parent cab7ecb8e5
commit 8b0de38ef8
13 changed files with 13 additions and 18 deletions

View File

@@ -34,7 +34,7 @@ class UpdaterState extends State<Updater> {
// Only prompt once a day
if (_lastUpdateCheck != null &&
DateTime.now().difference(_lastUpdateCheck) < const Duration(days: 1)) {
return null; // We already checked for updates recently
return; // We already checked for updates recently
}
_lastUpdateCheck = DateTime.now();