[libcatmandu-perl] 15/30: safer hash literal

Jonas Smedegaard dr at jones.dk
Tue Dec 19 11:10:13 UTC 2017


This is an automated email from the git hooks/post-receive script.

js pushed a commit to annotated tag debian/1.0700-1
in repository libcatmandu-perl.

commit 0e2c438bef41576382bc39e92a83cb9a61d1c8d9
Author: Nicolas Steenlant <nicolas.steenlant at ugent.be>
Date:   Thu Oct 19 15:01:11 2017 +0200

    safer hash literal
---
 lib/Catmandu/Store.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/Catmandu/Store.pm b/lib/Catmandu/Store.pm
index 4221476..03c4648 100644
--- a/lib/Catmandu/Store.pm
+++ b/lib/Catmandu/Store.pm
@@ -16,7 +16,7 @@ has bag_class => (is => 'ro', default => sub {ref($_[0]) . '::Bag'},);
 
 has default_bag => (is => 'lazy');
 has default_plugins => (is => 'ro', default => sub {[]},);
-has default_options => (is => 'ro', default => sub {{}},);
+has default_options => (is => 'ro', default => sub {+{}},);
 has bag_options => (is => 'ro', init_arg => 'bags', default => sub {+{}},);
 has key_prefix => (is => 'lazy', default => sub {'_'},);
 has id_key => (is => 'lazy', alias => 'id_field');

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libcatmandu-perl.git



More information about the Pkg-perl-cvs-commits mailing list