work around const lints (#14416)

* work around const lints

* update nonconst doc
This commit is contained in:
Alexandre Ardhuin
2018-02-02 08:06:42 +01:00
committed by GitHub
parent 08823595b0
commit 12ceaefb18
15 changed files with 63 additions and 54 deletions

View File

@@ -143,7 +143,7 @@ class ArchivePublisher {
jsonData['releases'][revision] = metadata;
final Directory localTempDir = tempDir ?? Directory.systemTemp.createTempSync('flutter_');
final File tempFile = new File(path.join(localTempDir.absolute.path, 'releases.json'));
final JsonEncoder encoder = const JsonEncoder.withIndent(' ');
const JsonEncoder encoder = const JsonEncoder.withIndent(' ');
tempFile.writeAsStringSync(encoder.convert(jsonData));
_cloudCopy(tempFile.absolute.path, metadataGsPath);
if (tempDir == null) {