From 651f1e53485f33001a8021399f3e0d43d8c7968c Mon Sep 17 00:00:00 2001 From: Jorie Tappa Date: Wed, 8 Aug 2018 10:33:30 -0500 Subject: Fix Style/MultipleComparison cop violations --- lib/puppet/type/cron.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/puppet/type/cron.rb') diff --git a/lib/puppet/type/cron.rb b/lib/puppet/type/cron.rb index becaeae..9827f2c 100644 --- a/lib/puppet/type/cron.rb +++ b/lib/puppet/type/cron.rb @@ -152,7 +152,7 @@ Puppet::Type.newtype(:cron) do munge do |value| # Support 'absent' as a value, so that they can remove # a value - if value == 'absent' || value == :absent + if ['absent', :absent].include? value return :absent end @@ -252,7 +252,7 @@ Puppet::Type.newtype(:cron) do def munge(value) # Support value absent so that a schedule can be # forced to change to numeric. - if value == 'absent' || value == :absent + if ['absent', :absent].include? value return :absent end value -- cgit v1.2.3