switch statement cleanup (#148382)
This PR is step 12 in the journey to solve issue #136139 and make the entire Flutter repo more readable. Most of it involves implementing switch expressions, and there's also a few other random things that I wanted to clean up a bit.
This commit is contained in:
@@ -1187,10 +1187,8 @@ Future<void> _runInteractive({
|
||||
case 'q':
|
||||
checker.cleanupTempDirectory();
|
||||
exit(0);
|
||||
case 'r':
|
||||
if (!busy) {
|
||||
rerun();
|
||||
}
|
||||
case 'r' when !busy:
|
||||
rerun();
|
||||
}
|
||||
});
|
||||
Watcher(file.absolute.path).events.listen((_) => rerun());
|
||||
|
||||
Reference in New Issue
Block a user