summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/bundled_gems.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundled_gems.rb b/lib/bundled_gems.rb
index f3e1708e23..e61c1ad231 100644
--- a/lib/bundled_gems.rb
+++ b/lib/bundled_gems.rb
@@ -108,7 +108,7 @@ module Gem::BUNDLED_GEMS
_t, path = $:.resolve_feature_path(feature)
if gem = find_gem(path)
return if specs.include?(gem)
- caller = caller_locations(3, 3).find {|c| c&.absolute_path}
+ caller = caller_locations(3, 3)&.find {|c| c&.absolute_path}
return if find_gem(caller&.absolute_path)
elsif SINCE[name] && !path
gem = true