Skip to content

Commit 3d7e4ae

Browse files
committed
Remove hash key quotes
1 parent 243bc19 commit 3d7e4ae

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
@@ -163,11 +163,11 @@ sub BUILDARGS {
163163
my ( $self, @args ) = @_;
164164
my %args = @args == 1 ? %{ $args[0] } : @args;
165165

166-
if ( exists $args{'index'} ) {
166+
if ( exists $args{index} ) {
167167
die
168168
"when setting --index, please export ES_SCRIPT_INDEX to the same value\n"
169-
unless $ENV{'ES_SCRIPT_INDEX'}
170-
and $args{'index'} eq $ENV{'ES_SCRIPT_INDEX'};
169+
unless $ENV{ES_SCRIPT_INDEX}
170+
and $args{index} eq $ENV{ES_SCRIPT_INDEX};
171171
}
172172

173173
return \%args;

0 commit comments

Comments
 (0)