fix: removed unnecessary checks (#93735)

This commit is contained in:
Konoshenko Vlad
2021-11-17 05:43:05 +03:00
committed by GitHub
parent c8d876c5f0
commit ee87f6113e
2 changed files with 2 additions and 2 deletions

View File

@@ -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,
'''