Update collection-fors to prefer final (as per updated prefer_final_in_for_each) (#127511)
The newly updated lint will soon flag for-each in collections. See discussion: https://github.com/dart-lang/linter/pull/4383 /cc @goderbauer
This commit is contained in:
@@ -64,7 +64,7 @@ class LinuxDoctorValidator extends DoctorValidator {
|
||||
|
||||
final Map<String, _VersionInfo?> installedVersions = <String, _VersionInfo?>{
|
||||
// Sort the check to make the call order predictable for unit tests.
|
||||
for (String binary in _requiredBinaryVersions.keys.toList()..sort())
|
||||
for (final String binary in _requiredBinaryVersions.keys.toList()..sort())
|
||||
binary: await _getBinaryVersion(binary),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user