From 7a1a6c8ef26c787e4b6dd1602f3d158b37e81720 Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Tue, 2 Jul 2019 15:09:07 -0700 Subject: fix Layout/EmptyLineAfterGuardClause i like this one, gives visual priority to returns or raises that are buried in the middle of things. Signed-off-by: Lamont Granquist --- lib/chef/provider/cron/unix.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/chef/provider/cron') diff --git a/lib/chef/provider/cron/unix.rb b/lib/chef/provider/cron/unix.rb index c89491cf45..f807ede3bb 100644 --- a/lib/chef/provider/cron/unix.rb +++ b/lib/chef/provider/cron/unix.rb @@ -42,6 +42,7 @@ class Chef raise Chef::Exceptions::Cron, "Error determining state of #{@new_resource.name}, exit: #{status}" end return nil if status > 0 + crontab.stdout.chomp << "\n" end -- cgit v1.2.1