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
2 changed files with 2 additions and 3 deletions

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;