Skip to content

Commit

Permalink
remove uninitialized warning if no config available
Browse files Browse the repository at this point in the history
  • Loading branch information
xsawyerx authored and veryrusty committed Mar 3, 2016
1 parent 6ef9088 commit 0b2fd77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Dancer2/Plugin.pm
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ sub _exporter_app {
my $plugin_config = $plugin_inst->{'config'}->();
my $app_plugin_config = $plugin_inst->{'app'}->config->{'plugins'}{$name};

return { %{ $plugin_config }, %{ $app_plugin_config } };
return { %{ $plugin_config || {} }, %{ $app_plugin_config || {} } };
};

# FIXME:
Expand Down

0 comments on commit 0b2fd77

Please sign in to comment.