enable prefer_function_declarations_over_variables lint (#77398)
This commit is contained in:
committed by
GitHub
parent
3571882e43
commit
807bb29888
@@ -179,7 +179,6 @@ class FakeDevice extends AndroidDevice {
|
||||
FakeDevice({String deviceId}) : super(deviceId: deviceId);
|
||||
|
||||
static String output = '';
|
||||
static ExitErrorFactory exitErrorFactory = () => null;
|
||||
|
||||
static List<CommandArgs> commandLog = <CommandArgs>[];
|
||||
|
||||
@@ -222,8 +221,5 @@ class FakeDevice extends AndroidDevice {
|
||||
arguments: arguments,
|
||||
environment: environment,
|
||||
));
|
||||
final dynamic exitError = exitErrorFactory();
|
||||
if (exitError != null)
|
||||
throw exitError;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user