Skip to content

Commit 415afed

Browse files
authored
Merge pull request #757 from zekefast/issue_756_fix_to_error_level_option_does_not_work
Fix setup of default log_format in PuppetLink.configuration when it is empty.
2 parents 72fb16a + 47198c1 commit 415afed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet-lint.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def file=(path)
8989
#
9090
# Returns a format String to be used with String#%.
9191
def log_format
92-
if configuration.log_format == ''
92+
if configuration.log_format.nil? || configuration.log_format.empty?
9393
## recreate previous old log format as far as thats possible.
9494
format = '%{KIND}: %{message} on line %{line}'
9595
format.prepend('%{path} - ') if configuration.with_filename

0 commit comments

Comments
 (0)