Enable no_default_cases lint (#91530)

This commit is contained in:
Ian Hickson
2021-10-11 10:23:04 -07:00
committed by GitHub
parent 66ff778602
commit 7b01346c5c
52 changed files with 337 additions and 90 deletions

View File

@@ -28,7 +28,7 @@ class TestStepResult {
final Object? result = snapshot.error;
return result! as TestStepResult;
}
default:
case ConnectionState.active:
throw 'Unsupported state ${snapshot.connectionState}';
}
}