Skip to content

Commit 445ba75

Browse files
committed
style: use ??= for assigning _delegatePackaingProperty
1 parent c1658f0 commit 445ba75

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/firebase_remote_config/firebase_remote_config/lib/src/remote_config.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,9 @@ class RemoteConfig extends FirebasePluginPlatform with ChangeNotifier {
2323
/// If called and no [_delegatePackingProperty] exists, it will first be
2424
/// created and assigned before returning the delegate.
2525
FirebaseRemoteConfigPlatform get _delegate {
26-
if (_delegatePackingProperty == null) {
27-
_delegatePackingProperty = FirebaseRemoteConfigPlatform.instanceFor(
28-
app: app, pluginConstants: pluginConstants);
29-
}
26+
_delegatePackingProperty ??= FirebaseRemoteConfigPlatform.instanceFor(
27+
app: app, pluginConstants: pluginConstants
28+
);
3029
return _delegatePackingProperty;
3130
}
3231

0 commit comments

Comments
 (0)