enable lint prefer_null_aware_operators (#32686)
This commit is contained in:
parent
242e2f5cf7
commit
41b9abdc32
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user