Skip to content

Commit

Permalink
Prevent null
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobaraujo7 committed Sep 7, 2022
1 parent 2829932 commit aff08df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/configure/configure.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ abstract class Configure {
: defaultValue;

/// Environments.
Map<String, String> get environment => call('environment');
Map<String, String> get environment => call('environment') ?? {};

/// Get environment variable.
String? env(String name) => environment[name];
Expand Down

0 comments on commit aff08df

Please sign in to comment.