Skip to content

Commit cbd1f6e

Browse files
committed
Merge remote-tracking branch 'origin/main' into compile-to-result
2 parents 1565b9c + 426277e commit cbd1f6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/utils.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ Future<Iterable<F>> mapAsync<E, F>(
369369
/// same key.
370370
Future<V> putIfAbsentAsync<K, V>(
371371
Map<K, V> map, K key, Future<V> ifAbsent()) async {
372-
if (map.containsKey(key)) return map[key]!;
372+
if (map.containsKey(key)) return map[key] as V;
373373
var value = await ifAbsent();
374374
map[key] = value;
375375
return value;

0 commit comments

Comments
 (0)