Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into compile-to-result
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed Jul 23, 2021
2 parents 1565b9c + 426277e commit cbd1f6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ Future<Iterable<F>> mapAsync<E, F>(
/// same key.
Future<V> putIfAbsentAsync<K, V>(
Map<K, V> map, K key, Future<V> ifAbsent()) async {
if (map.containsKey(key)) return map[key]!;
if (map.containsKey(key)) return map[key] as V;
var value = await ifAbsent();
map[key] = value;
return value;
Expand Down

0 comments on commit cbd1f6e

Please sign in to comment.