summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2017-09-28 17:06:43 -0700
committerTim Smith <tsmith@chef.io>2018-02-26 12:22:02 -0800
commite4844f8926cf5a04c5e93291175b5f2bab262680 (patch)
tree62dec22bbcd177796d64144bfe4381ea5826a4ca
parent423e66625eb9bd744a5db979b326f6d2afb3d1e1 (diff)
downloadchef-e4844f8926cf5a04c5e93291175b5f2bab262680.tar.gz
Collapse the not_if format
Much easier to read Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/provider/apt_repository.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/chef/provider/apt_repository.rb b/lib/chef/provider/apt_repository.rb
index 831afad083..8f7fb5cd03 100644
--- a/lib/chef/provider/apt_repository.rb
+++ b/lib/chef/provider/apt_repository.rb
@@ -180,9 +180,7 @@ class Chef
declare_resource(:execute, "apt-key add #{cached_keyfile}") do
sensitive new_resource.sensitive
action :run
- not_if do
- no_new_keys?(cached_keyfile)
- end
+ not_if { no_new_keys?(cached_keyfile) }
notifies :run, "execute[apt-cache gencaches]", :immediately
end
end