Skip to content

Commit adfc5fe

Browse files
committed
review nit
1 parent 64c9ba7 commit adfc5fe

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lib/src/common/params.dart

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -800,11 +800,10 @@ class InternalExpression extends Param<String> {
800800
String runtimeValue() {
801801
if (Platform.environment['FIREBASE_CONFIG'] case final String config) {
802802
try {
803-
if (jsonDecode(config) case final Map<String, dynamic> m) {
804-
return switch (m[_configKey]) {
805-
final String value => value,
806-
_ => '',
807-
};
803+
if (jsonDecode(config) case final Map<String, dynamic> map) {
804+
if (map[_configKey] case final String value) {
805+
return value;
806+
}
808807
}
809808
} on FormatException {
810809
// ignore

0 commit comments

Comments
 (0)