We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64c9ba7 commit adfc5feCopy full SHA for adfc5fe
lib/src/common/params.dart
@@ -800,11 +800,10 @@ class InternalExpression extends Param<String> {
800
String runtimeValue() {
801
if (Platform.environment['FIREBASE_CONFIG'] case final String config) {
802
try {
803
- if (jsonDecode(config) case final Map<String, dynamic> m) {
804
- return switch (m[_configKey]) {
805
- final String value => value,
806
- _ => '',
807
- };
+ if (jsonDecode(config) case final Map<String, dynamic> map) {
+ if (map[_configKey] case final String value) {
+ return value;
+ }
808
}
809
} on FormatException {
810
// ignore
0 commit comments