diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-03-23 14:01:10 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-03-23 14:01:10 -0700 |
commit | 7ab1a781a5190e9b6501ee349117e59479a88ff4 (patch) | |
tree | d839ad3da20e8cbd6a2444d1d1a58a12d2d459c3 | |
parent | c541a451b092f356aefd1eed9027a305e37a2e8a (diff) | |
download | chef-7ab1a781a5190e9b6501ee349117e59479a88ff4.tar.gz |
Chefstyle fix
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | lib/chef/mixin/cron_validations.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/mixin/cron_validations.rb b/lib/chef/mixin/cron_validations.rb index 0723560e45..8428624dc2 100644 --- a/lib/chef/mixin/cron_validations.rb +++ b/lib/chef/mixin/cron_validations.rb @@ -66,8 +66,8 @@ class Chef # @param spec the value to validate # @return [Boolean] valid or not? def self.validate_dow(spec) - return spec == "*" || - validate_numeric(spec, 0, 7) || + spec == "*" || + validate_numeric(spec, 0, 7) || %w{sun mon tue wed thu fri sat}.include?(String(spec).downcase) end end |