We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da8a25c commit ddb0ca4Copy full SHA for ddb0ca4
2 files changed
pkgs/pubspec_parse/CHANGELOG.md
@@ -2,6 +2,7 @@
2
3
- Added `toJson` method to `Pubspec` to serialize the object back to a `Map`.
4
- Require Dart 3.8
5
+- Fix analysis issues caused by new lints.
6
7
## 1.5.0
8
pkgs/pubspec_parse/lib/src/pubspec.dart
@@ -186,7 +186,7 @@ class Pubspec {
186
);
187
188
static List<String> _normalizeAuthors(String? author, List<String>? authors) {
189
- final value = <String>{if (author != null) author, ...?authors};
+ final value = <String>{?author, ...?authors};
190
return value.toList();
191
}
192
0 commit comments