forked from firka/flutter
re-re-enable lint unnecessary_const (#20103)
This commit is contained in:
committed by
GitHub
parent
ffbaa97b50
commit
eda03e2586
@@ -520,7 +520,7 @@ class ArchivePublisher {
|
||||
|
||||
jsonData = _addRelease(jsonData);
|
||||
|
||||
const JsonEncoder encoder = const JsonEncoder.withIndent(' ');
|
||||
const JsonEncoder encoder = JsonEncoder.withIndent(' ');
|
||||
metadataFile.writeAsStringSync(encoder.convert(jsonData));
|
||||
await _cloudCopy(metadataFile.absolute.path, metadataGsPath);
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ final String reset = hasColor ? '\x1B[0m' : '';
|
||||
const String arrow = '⏩';
|
||||
const String clock = '🕐';
|
||||
|
||||
const Map<String, ShardRunner> _kShards = const <String, ShardRunner>{
|
||||
const Map<String, ShardRunner> _kShards = <String, ShardRunner>{
|
||||
'analyze': _analyzeRepo,
|
||||
'tests': _runTests,
|
||||
'tool_tests': _runToolTests,
|
||||
@@ -37,8 +37,8 @@ const Map<String, ShardRunner> _kShards = const <String, ShardRunner>{
|
||||
// 'build_and_deploy_gallery': handled by travis_script.sh
|
||||
};
|
||||
|
||||
const Duration _kLongTimeout = const Duration(minutes: 45);
|
||||
const Duration _kShortTimeout = const Duration(minutes: 5);
|
||||
const Duration _kLongTimeout = Duration(minutes: 45);
|
||||
const Duration _kShortTimeout = Duration(minutes: 5);
|
||||
|
||||
/// When you call this, you can pass additional arguments to pass custom
|
||||
/// arguments to flutter test. For example, you might want to call this
|
||||
|
||||
@@ -313,7 +313,7 @@ void main() {
|
||||
new DateTime.now().difference(DateTime.parse(releases[0]['release_date'])),
|
||||
lessThan(const Duration(minutes: 1)),
|
||||
);
|
||||
const JsonEncoder encoder = const JsonEncoder.withIndent(' ');
|
||||
const JsonEncoder encoder = JsonEncoder.withIndent(' ');
|
||||
expect(contents, equals(encoder.convert(jsonData)));
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user