diff options
-rw-r--r-- | lib/chef/resource/dnf_package.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/dnf_package.rb b/lib/chef/resource/dnf_package.rb index 84f15fae7a..49bf44bd8b 100644 --- a/lib/chef/resource/dnf_package.rb +++ b/lib/chef/resource/dnf_package.rb @@ -55,7 +55,7 @@ class Chef } def allow_downgrade(arg = nil) - if arg != nil + if !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 |