Skip to content

Commit

Permalink
Clean this up a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
rodjek committed Sep 23, 2014
1 parent c08bf75 commit 7c52636
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/puppet-lint/tasks/puppet-lint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,8 @@ def define(args, &task_block)
end

%w{with_filename fail_on_warnings error_level log_format with_context fix show_ignored}.each do |config|
unless instance_variable_get("@#{config}").nil?
PuppetLint.configuration.send(config.to_sym, instance_variable_get("@#{config}"))
end
value = instance_variable_get("@#{config}")
PuppetLint.configuration.send("#{config}=".to_sym, value) unless value.nil?
end

RakeFileUtils.send(:verbose, true) do
Expand Down

0 comments on commit 7c52636

Please sign in to comment.