lib/puppet-lint/plugins/check_appends.rb in puppet-lint-appends-check-1.0.0 vs lib/puppet-lint/plugins/check_appends.rb in puppet-lint-appends-check-2.0.0

- old
+ new

@@ -1,14 +1,14 @@ PuppetLint.new_check(:appends) do def check - tokens.each_with_index do |token, token_idx| - if token.type == :APPENDS - notify :warning, { - :message => 'The appends (+=) operator was used.', - :line => token.line, - :column => token.column, - :token => token, - } - end + tokens.each_with_index do |token, _token_idx| + next unless token.type == :APPENDS + + notify :warning, { + message: 'The appends (+=) operator was used.', + line: token.line, + column: token.column, + token: token, + } end end end