mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Add guard as same as ==
Try to fix failure at https://github.com/ruby/ruby/runs/207580232#step:10:382 ``` undefined method `name' for "Gemfile.lock":String /home/runner/work/ruby/ruby/lib/bundler/resolver/spec_group.rb:65:in `eql?' ```
This commit is contained in:
parent
896d9f967b
commit
b870ca5879
1 changed files with 1 additions and 0 deletions
|
@ -62,6 +62,7 @@ module Bundler
|
||||||
end
|
end
|
||||||
|
|
||||||
def eql?(other)
|
def eql?(other)
|
||||||
|
return unless other.is_a?(SpecGroup)
|
||||||
name.eql?(other.name) &&
|
name.eql?(other.name) &&
|
||||||
version.eql?(other.version) &&
|
version.eql?(other.version) &&
|
||||||
source.eql?(other.source)
|
source.eql?(other.source)
|
||||||
|
|
Loading…
Add table
Reference in a new issue