Skip to content

Commit

Permalink
Update lib/perlcritic/Perl/Critic/Policy/HashKeyQuotes.pm
Browse files Browse the repository at this point in the history
Co-authored-by: Martchus <martchus@gmx.net>
  • Loading branch information
josegomezr and Martchus authored Nov 13, 2023
1 parent d6c9041 commit 0d23938
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/perlcritic/Perl/Critic/Policy/HashKeyQuotes.pm
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ sub applies_to { return qw(PPI::Token::Quote::Single PPI::Token::Quote::Double)

# check that hashes are not overly using quotes
# (os-autoinst coding style)
sub violates {
my ($self, $elem) = @_;
sub violates ($elem) {

#we only want the check hash keys
return if !is_hash_key($elem);
Expand Down

0 comments on commit 0d23938

Please sign in to comment.