summaryrefslogtreecommitdiff
path: root/lib/chef/resource/dnf_package.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/resource/dnf_package.rb')
-rw-r--r--lib/chef/resource/dnf_package.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/dnf_package.rb b/lib/chef/resource/dnf_package.rb
index 52c739beb9..c90e135335 100644
--- a/lib/chef/resource/dnf_package.rb
+++ b/lib/chef/resource/dnf_package.rb
@@ -70,7 +70,7 @@ class Chef
}
def allow_downgrade(arg = nil)
- if !arg.nil?
+ unless arg.nil?
Chef.deprecated(:dnf_package_allow_downgrade, "the allow_downgrade property on the dnf_package provider is not used, DNF supports downgrades by default.")
end
false