From 5e6f975c439abf8c004e26d9bfad27204cab3b27 Mon Sep 17 00:00:00 2001 From: Jorie Tappa Date: Wed, 8 Aug 2018 10:14:17 -0500 Subject: Fix Lint/EmptyWhen violation --- lib/puppet/type/cron.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'lib') diff --git a/lib/puppet/type/cron.rb b/lib/puppet/type/cron.rb index 4243bcf..332affb 100644 --- a/lib/puppet/type/cron.rb +++ b/lib/puppet/type/cron.rb @@ -459,12 +459,7 @@ Puppet::Type.newtype(:cron) do end unless ret - case name - when :command - when :special - # nothing - else - # ret = (self.class.validproperty?(name).default || "*").to_s + unless [:command, :special].include? name ret = '*' end end -- cgit v1.2.3