Skip to content

Commit

Permalink
Update lib/src/utils.dart
Browse files Browse the repository at this point in the history
Co-authored-by: Jonas Finnemann Jensen <jopsen@gmail.com>
  • Loading branch information
sigurdm and jonasfj authored Oct 6, 2022
1 parent 74cbf4c commit f573b61
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/src/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -651,11 +651,11 @@ Map<K2, V2> mapMap<K1, V1, K2, V2>(
bool fixedTimeBytesEquals(List<int>? a, List<int>? b) {
if (a == null || b == null) return a == b;
if (a.length != b.length) return false;
bool e = true;
var e = 0;
for (var i = 0; i < a.length; i++) {
e &= a[i] == b[i];
e |= a[i] ^ b[i];
}
return e;
return e == 0;
}

/// Call [fn] retrying so long as [retryIf] return `true` for the exception
Expand Down

0 comments on commit f573b61

Please sign in to comment.