enable prefer_function_declarations_over_variables lint (#77398)

This commit is contained in:
Michael Goderbauer
2021-03-05 18:29:04 -08:00
committed by GitHub
parent 3571882e43
commit 807bb29888
70 changed files with 274 additions and 276 deletions

View File

@@ -50,12 +50,12 @@ typedef LoggingFunction = void Function(LogMessage log);
/// '[${log.levelName}]::${log.tag}--${log.time}: ${log.message}'
///
/// Exits with status code 1 if the `log` is [LoggingLevel.severe].
LoggingFunction defaultLoggingFunction = (LogMessage log) {
void defaultLoggingFunction(LogMessage log) {
print('[${log.levelName}]::${log.tag}--${log.time}: ${log.message}');
if (log.level == LoggingLevel.severe) {
exit(1);
}
};
}
/// Represents a logging message created by the logger.
///