Skip to content

Commit

Permalink
Merge pull request #198 from puppetlabs/hsnodgrass-patch-1
Browse files Browse the repository at this point in the history
Fix function call name token type in function_indexes method
  • Loading branch information
jordanbreen28 authored Jul 5, 2024
2 parents 66ed4a2 + 0a278ac commit 6a6d2e6
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 == :FUNCTION_NAME
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 6a6d2e6

Please sign in to comment.