| Index: pkg/analyzer/lib/src/context/cache.dart
|
| diff --git a/pkg/analyzer/lib/src/context/cache.dart b/pkg/analyzer/lib/src/context/cache.dart
|
| index 7e6e0a05ef578a9c8ebc480f42bc7cc0676ccce3..c5641a9da605a258e3319b5db29c63ae42acc12b 100644
|
| --- a/pkg/analyzer/lib/src/context/cache.dart
|
| +++ b/pkg/analyzer/lib/src/context/cache.dart
|
| @@ -514,7 +514,7 @@ class CacheEntry {
|
| ResultData data = getResultData(descriptor);
|
| _setDependedOnResults(data, thisResult, dependedOn);
|
| data.state = CacheState.VALID;
|
| - data.value = value == null ? descriptor.defaultValue : value;
|
| + data.value = value ?? descriptor.defaultValue;
|
| }
|
|
|
| /**
|
| @@ -922,7 +922,7 @@ abstract class CachePartition {
|
| */
|
| List<Source> getSourcesWithFullName(String path) {
|
| List<Source> sources = pathToSource[path];
|
| - return sources != null ? sources : Source.EMPTY_LIST;
|
| + return sources ?? Source.EMPTY_LIST;
|
| }
|
|
|
| /**
|
|
|