Skip to content

Commit

Permalink
Fix reading null entries in per importer cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ntkme committed May 10, 2024
1 parent 85f39d5 commit 96d920f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/util/map.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ extension MapExtensions<K, V> on Map<K, V> {

/// Returns an option that contains the value at [key] if one exists and null
/// otherwise.
Option<V> getOption(K key) => containsKey(key) ? (this[key]!,) : null;
Option<V?> getOption(K key) => containsKey(key) ? (this[key],) : null;
}

0 comments on commit 96d920f

Please sign in to comment.