Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasAud committed Oct 22, 2024
1 parent d8a1ccd commit d44f105
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet-lint/data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ def function_indexes
@function_indexes ||= begin
functions = []
tokens.each_with_index do |token, token_idx|
next unless token.type == :NAME
next unless token.type == :F_NAME

Check warning on line 389 in lib/puppet-lint/data.rb

View check run for this annotation

Codecov / codecov/patch

lib/puppet-lint/data.rb#L389

Added line #L389 was not covered by tests
next unless token_idx.zero? ||
(token_idx == 1 && tokens[0].type == :WHITESPACE) ||
[:NEWLINE, :INDENT].include?(token.prev_token.type) ||
Expand Down

0 comments on commit d44f105

Please # to comment.