aboutsummaryrefslogtreecommitdiff
path: root/lib/puppet/type/cron.rb
diff options
context:
space:
mode:
authorJorie Tappa <jorie@jorietappa.com>2018-08-08 10:33:30 -0500
committerJorie Tappa <jorie@jorietappa.com>2018-08-08 10:33:30 -0500
commit651f1e53485f33001a8021399f3e0d43d8c7968c (patch)
tree5249a71e55283aa2efaae736d1fb2a2595df4405 /lib/puppet/type/cron.rb
parentddbf37f1d6cc969c002ef355ba04aedfb9020b89 (diff)
downloadpuppet-cron_core-651f1e53485f33001a8021399f3e0d43d8c7968c.tar.gz
puppet-cron_core-651f1e53485f33001a8021399f3e0d43d8c7968c.tar.bz2
Fix Style/MultipleComparison cop violations
Diffstat (limited to 'lib/puppet/type/cron.rb')
-rw-r--r--lib/puppet/type/cron.rb4
1 files changed, 2 insertions, 2 deletions
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