From 1b2a7d90af49b19409dcb151f922f124f797a290 Mon Sep 17 00:00:00 2001 From: ben hengst Date: Thu, 24 Mar 2011 19:29:26 -0700 Subject: case seems needless here as there is only two opts, also the rest of the file seems to use if so this should make things more consistant --- lib/puppet.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/puppet.rb') diff --git a/lib/puppet.rb b/lib/puppet.rb index a9ed2898c..f97d28642 100644 --- a/lib/puppet.rb +++ b/lib/puppet.rb @@ -59,8 +59,7 @@ module Puppet # configuration parameter access and stuff def self.[](param) - case param - when :debug + if param == :debug return Puppet::Util::Log.level == :debug else return @@settings[param] -- cgit