Enable unnecessary_null_checks lint (#82084)

This commit is contained in:
Abhishek Ghaskata
2021-05-14 23:14:03 +05:30
committed by GitHub
parent f6747dfa10
commit b554f893bd
15 changed files with 26 additions and 23 deletions

View File

@@ -137,7 +137,7 @@ class AnalysisServer {
}
} else if (response['error'] != null) {
// Fields are 'code', 'message', and 'stackTrace'.
final Map<String, dynamic> error = castStringKeyedMap(response['error']!)!;
final Map<String, dynamic> error = castStringKeyedMap(response['error'])!;
_logger.printError(
'Error response from the server: ${error['code']} ${error['message']}');
if (error['stackTrace'] != null) {