summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-03-23 13:31:59 -0700
committerTim Smith <tsmith84@gmail.com>2020-03-23 13:31:59 -0700
commit8123ca42caddfd6873daf23ddc2f750a9e8983ed (patch)
tree59a29c66c3aa8093ba0d4b49daed8b319a24e249
parent5f0de126e4390d03fd7020e05936df2e8b606e2d (diff)
downloadchef-8123ca42caddfd6873daf23ddc2f750a9e8983ed.tar.gz
Remove another duplicate value check
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/mixin/cron_validations.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/chef/mixin/cron_validations.rb b/lib/chef/mixin/cron_validations.rb
index 309362974c..df5540436a 100644
--- a/lib/chef/mixin/cron_validations.rb
+++ b/lib/chef/mixin/cron_validations.rb
@@ -71,7 +71,6 @@ class Chef
if spec.respond_to? :to_int
validate_numeric(spec, 0, 7)
elsif spec.respond_to? :to_str
- return true if spec == "*"
# Named abbreviations are permitted but not as part of a range or with stepping
return true if %w{sun mon tue wed thu fri sat}.include? spec.downcase