Skip to content

Commit

Permalink
fix for latest pubspec_parse
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmoo committed Dec 29, 2024
1 parent 0bb8da7 commit fdcbcb8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions lib/src/pubspek.dart
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,8 @@ class _Pubspec {
_dependentSdks!.add(value.sdk);
}
});
if (_inner.environment != null) {
final keys = _inner.environment!.keys.toList()..remove('sdk');
_dependentSdks!.addAll(keys);
}
final keys = _inner.environment.keys.toList()..remove('sdk');
_dependentSdks!.addAll(keys);
}
return _dependentSdks!;
}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dependencies:
io: ^1.0.0
path: ^1.8.0
pub_semver: ^2.0.0
pubspec_parse: ^1.0.0
pubspec_parse: ^1.4.0
stack_trace: ^1.10.0
string_scanner: ^1.1.0
yaml: ^3.1.0
Expand Down

0 comments on commit fdcbcb8

Please sign in to comment.