Skip to content

Commit 74ba1b6

Browse files
committed
Remove hash key quotes
1 parent d1deb72 commit 74ba1b6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/MetaCPAN/Role/Script.pm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,11 @@ sub BUILDARGS {
161161
my ( $self, @args ) = @_;
162162
my %args = @args == 1 ? %{ $args[0] } : @args;
163163

164-
if ( exists $args{'index'} ) {
164+
if ( exists $args{index} ) {
165165
die
166166
"when setting --index, please export ES_SCRIPT_INDEX to the same value\n"
167-
unless $ENV{'ES_SCRIPT_INDEX'}
168-
and $args{'index'} eq $ENV{'ES_SCRIPT_INDEX'};
167+
unless $ENV{ES_SCRIPT_INDEX}
168+
and $args{index} eq $ENV{ES_SCRIPT_INDEX};
169169
}
170170

171171
return \%args;

0 commit comments

Comments
 (0)