Skip to content

Commit ddb0ca4

Browse files
authored
Fix analysis errors (#2317)
1 parent da8a25c commit ddb0ca4

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

pkgs/pubspec_parse/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
- Added `toJson` method to `Pubspec` to serialize the object back to a `Map`.
44
- Require Dart 3.8
5+
- Fix analysis issues caused by new lints.
56

67
## 1.5.0
78

pkgs/pubspec_parse/lib/src/pubspec.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ class Pubspec {
186186
);
187187

188188
static List<String> _normalizeAuthors(String? author, List<String>? authors) {
189-
final value = <String>{if (author != null) author, ...?authors};
189+
final value = <String>{?author, ...?authors};
190190
return value.toList();
191191
}
192192
}

0 commit comments

Comments
 (0)