Unverified Commit ee87f611 authored by Konoshenko Vlad's avatar Konoshenko Vlad Committed by GitHub

fix: removed unnecessary checks (#93735)

parent c8d876c5
......@@ -198,7 +198,7 @@ class AndroidSdk {
}
}
for (final String searchPath in searchPaths.whereType<String>()) {
for (final String searchPath in searchPaths) {
if (globals.fs.directory(searchPath).existsSync()) {
return searchPath;
}
......
......@@ -108,7 +108,7 @@ void main() {
// Create already parsed pubspecs.
final PubspecYaml flutterPubspec = PubspecYaml(flutter);
final PubspecDependency gitDependency = flutterPubspec.dependencies.whereType<PubspecDependency>().firstWhere((PubspecDependency dep) => dep.kind == DependencyKind.git);
final PubspecDependency gitDependency = flutterPubspec.dependencies.firstWhere((PubspecDependency dep) => dep.kind == DependencyKind.git);
expect(
gitDependency.lockLine,
'''
......
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