fix: removed unnecessary checks (#93735)
This commit is contained in:
parent
c8d876c5f0
commit
ee87f6113e
@ -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,
|
||||
'''
|
||||
|
Loading…
x
Reference in New Issue
Block a user