Add bang to validate_reporters

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
This commit is contained in:
Clinton Wolfe 2019-01-17 10:42:54 -05:00
parent 605eea72a5
commit e0951e9ad0

View file

@ -221,7 +221,7 @@ module Inspec
end
end
def validate_reporters(reporters)
def validate_reporters!(reporters)
return if reporters.nil?
# TODO: move this into a reporter plugin type system
valid_types = [
@ -326,7 +326,7 @@ module Inspec
end
end
validate_reporters(options['reporter'])
validate_reporters!(options['reporter'])
options
end