Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
felangel committed Nov 21, 2024
1 parent d0c0569 commit d30500a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/src/equatable_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@ bool iterableEquals(Iterable<Object?> a, Iterable<Object?> b) {
}

/// Determines whether two numbers are equal.
bool numEquals(num a, num b) {
if (identical(a, b)) return true;
return a == b;
}
@pragma('vm:prefer-inline')
bool numEquals(num a, num b) => a == b;

/// Determines whether two sets are equal.
bool setEquals(Set<Object?> a, Set<Object?> b) {
Expand Down

0 comments on commit d30500a

Please sign in to comment.