Skip to content

Commit

Permalink
fix: Modify Assertion Logic
Browse files Browse the repository at this point in the history
  • Loading branch information
MMMzq committed Sep 19, 2023
1 parent afec0dd commit ef967de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/nil.dart
Original file line number Diff line number Diff line change
Expand Up @@ -380,5 +380,5 @@ R returnFirstIfNotNilAndCast<R>(Object? v1, Object? v2) {
}

bool isNilOr<T>(List<Object?> list) {
return list.every((element) => element == nil || list is T && list is T?);
return list.every((element) => element == nil || list is T || list is T?);
}

0 comments on commit ef967de

Please sign in to comment.