Skip to content

Commit 324efda

Browse files
authored
Merge pull request #755 from tphoney/method_missing
fix logic in method_missing
2 parents 302546c + 007e7a1 commit 324efda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet-lint/configuration.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def method_missing(method, *args, &_block)
5454

5555
option = Regexp.last_match(:option)
5656
add_option(option.to_s) if settings[option].nil?
57-
settings[option] = args[0] if args.length > 1
57+
settings[option] = args[0] unless args.empty?
5858
end
5959

6060
def respond_to_missing?(method, *)

0 commit comments

Comments
 (0)