mirror of
https://github.com/danog/dart-sass.git
synced 2024-11-30 04:39:03 +01:00
Avoid null check on potentially nullable type parameter
This commit is contained in:
parent
fec9a2aced
commit
a705445f0d
@ -455,7 +455,7 @@ extension MapExtension<K, V> on Map<K, V> {
|
||||
/// [key] to the result.
|
||||
V putOrMerge(K key, V value, V Function(V oldValue, V newValue) merge) =>
|
||||
containsKey(key)
|
||||
? this[key] = merge(this[key]!, value)
|
||||
? this[key] = merge(this[key] as V, value)
|
||||
: this[key] = value;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user