enable lint prefer_generic_function_type_aliases (#21680)
This commit is contained in:
committed by
GitHub
parent
6c3adcf60f
commit
a07d3719a1
@@ -20,7 +20,7 @@ const Duration _kDefaultTaskTimeout = Duration(minutes: 15);
|
||||
|
||||
/// Represents a unit of work performed in the CI environment that can
|
||||
/// succeed, fail and be retried independently of others.
|
||||
typedef Future<TaskResult> TaskFunction();
|
||||
typedef TaskFunction = Future<TaskResult> Function();
|
||||
|
||||
bool _isTaskRegistered = false;
|
||||
|
||||
|
||||
@@ -122,7 +122,7 @@ CommandArgs cmd({
|
||||
);
|
||||
}
|
||||
|
||||
typedef dynamic ExitErrorFactory();
|
||||
typedef ExitErrorFactory = dynamic Function();
|
||||
|
||||
class CommandArgs {
|
||||
CommandArgs({ this.command, this.arguments, this.environment });
|
||||
|
||||
Reference in New Issue
Block a user