enable lint prefer_null_aware_operators (#32686)

This commit is contained in:
Alexandre Ardhuin 2019-05-14 22:34:49 +02:00 committed by GitHub
parent 242e2f5cf7
commit 41b9abdc32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -142,6 +142,7 @@ linter:
- prefer_is_not_empty
- prefer_iterable_whereType
# - prefer_mixin # https://github.com/dart-lang/language/issues/32
- prefer_null_aware_operators
- prefer_single_quotes
- prefer_typing_uninitialized_variables
- prefer_void_to_null

View File

@ -252,9 +252,7 @@ class SnippetGenerator {
metadata.addAll(<String, Object>{
'id': id,
'file': path.basename(outputFile.path),
'description': description != null
? description.mergedContent
: null,
'description': description?.mergedContent,
});
metadataFile.writeAsStringSync(jsonEncoder.convert(metadata));
break;