summaryrefslogtreecommitdiff
path: root/lib/chef/provider/package/windows.rb
diff options
context:
space:
mode:
authorThom May <thom@chef.io>2016-04-20 14:57:20 +0100
committerThom May <thom@chef.io>2016-04-20 14:57:20 +0100
commitecfa1343b6e5836d8ab792be83b5e096e1201fa7 (patch)
tree1abf59109f17d9da51cf451381ff2a4700fbc4db /lib/chef/provider/package/windows.rb
parent3d70714756bd315abd4fab9031c87aaed59ae5a2 (diff)
downloadchef-ecfa1343b6e5836d8ab792be83b5e096e1201fa7.tar.gz
update to latest chefstyle - fix casecmptm/fix_casecmp
Diffstat (limited to 'lib/chef/provider/package/windows.rb')
-rw-r--r--lib/chef/provider/package/windows.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/package/windows.rb b/lib/chef/provider/package/windows.rb
index 02137a5525..a5f3ff7191 100644
--- a/lib/chef/provider/package/windows.rb
+++ b/lib/chef/provider/package/windows.rb
@@ -260,7 +260,7 @@ class Chef
if source_location.nil?
inferred_registry_type == :msi
else
- ::File.extname(source_location).downcase == ".msi"
+ ::File.extname(source_location).casecmp(".msi").zero?
end
end
end