Unverified Commit 41b9abdc authored by Alexandre Ardhuin's avatar Alexandre Ardhuin Committed by GitHub

enable lint prefer_null_aware_operators (#32686)

parent 242e2f5c
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment