diff options
author | Saverio Miroddi <saverio.pub2@gmail.com> | 2018-03-27 23:35:49 +0200 |
---|---|---|
committer | Saverio Miroddi <saverio.pub2@gmail.com> | 2018-03-27 23:35:49 +0200 |
commit | 4f6367f764d9da25c2f0ed92a3267d28ea8f2a08 (patch) | |
tree | 694caf10d442f6c41b6bb4fe6eec3a7d32d13b64 | |
parent | d559cd7ef9a3484c3224964a15a73015c5c06e08 (diff) | |
download | bundler-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.rb | 2 |
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 |