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

@@ -74,8 +74,6 @@ abstract class DeviceDiscovery {
case DeviceOperatingSystem.fake:
print('Looking for fake devices! You should not see this in release builds.');
return FakeDeviceDiscovery();
default:
throw DeviceException('Unsupported device operating system: $deviceOperatingSystem');
}
}