summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColby Swandale <colby@taplaboratories.com>2017-01-27 13:46:37 +1100
committerColby Swandale <colby@taplaboratories.com>2017-01-27 13:46:37 +1100
commit341d2649f0a8061dbee0268ab6ed1e78931deac7 (patch)
tree7e09b4cb7a6fc07b34d027ba9312ff328b8222e0
parent2acb95395838a06bdd9dbf266ca8166b11ee0917 (diff)
downloadbundler-341d2649f0a8061dbee0268ab6ed1e78931deac7.tar.gz
rubocop fixes
-rw-r--r--lib/bundler/cli/info.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bundler/cli/info.rb b/lib/bundler/cli/info.rb
index 29eb78f705..20a682fe48 100644
--- a/lib/bundler/cli/info.rb
+++ b/lib/bundler/cli/info.rb
@@ -14,6 +14,7 @@ module Bundler
gem = Gem::Specification.find_by_name(gem_name)
spec = gem if gem.default_gem?
rescue Gem::MissingSpecError
+ nil
end
spec ||= Bundler::CLI::Common.select_spec(gem_name, :regex_match)