summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-03-12 09:17:03 -0700
committerTim Smith <tsmith@chef.io>2018-03-12 09:17:03 -0700
commit17cc02372c4e8c07014db140cfbadff18bf50146 (patch)
tree6dcd34ee4c1d2ab873fd650d248a1bdc69976fe3
parent5672d71c500c86bee3fe7e107933f5390f2c1ac9 (diff)
downloadchef-rubocop_unfreezestring.tar.gz
Just use an empty stringrubocop_unfreezestring
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/provider/cron.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/provider/cron.rb b/lib/chef/provider/cron.rb
index ee5f408c01..2e702d4376 100644
--- a/lib/chef/provider/cron.rb
+++ b/lib/chef/provider/cron.rb
@@ -95,8 +95,8 @@ class Chef
end
def action_create
- crontab = +""
- newcron = +""
+ crontab = ""
+ newcron = ""
cron_found = false
newcron = get_crontab_entry
@@ -156,7 +156,7 @@ class Chef
def action_delete
if @cron_exists
- crontab = +""
+ crontab = ""
cron_found = false
read_crontab.each_line do |line|
case line.chomp