summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaverio Miroddi <saverio.pub2@gmail.com>2018-03-27 23:35:49 +0200
committerSaverio Miroddi <saverio.pub2@gmail.com>2018-03-27 23:35:49 +0200
commit4f6367f764d9da25c2f0ed92a3267d28ea8f2a08 (patch)
tree694caf10d442f6c41b6bb4fe6eec3a7d32d13b64
parentd559cd7ef9a3484c3224964a15a73015c5c06e08 (diff)
downloadbundler-4f6367f764d9da25c2f0ed92a3267d28ea8f2a08.tar.gz
More solid options checking in Plugin::Installer
Addresses https://github.com/bundler/bundler/pull/6338#discussion_r177393334.
-rw-r--r--lib/bundler/plugin/installer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/plugin/installer.rb b/lib/bundler/plugin/installer.rb
index 9f172dfe19..713d679f12 100644
--- a/lib/bundler/plugin/installer.rb
+++ b/lib/bundler/plugin/installer.rb
@@ -48,7 +48,7 @@ module Bundler
#
# rubocop:disable Style/GuardClause
def check_sources_consistency!(options)
- if options[:git] && options[:local_git]
+ if options.key?(:git) && options.key?(:local_git)
raise InvalidOption, "Remote and local plugin git sources can't be both specified"
end
end