mirror of
https://github.com/danog/dart-sass.git
synced 2024-11-26 20:24:42 +01:00
Merge remote-tracking branch 'origin/main' into compile-to-result
This commit is contained in:
commit
cbd1f6e4cd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user