Skip to content

Commit

Permalink
Merge pull request #301 from byroot/patch-2
Browse files Browse the repository at this point in the history
Prefer `Object.equal?` over unknown module `equal?` method
  • Loading branch information
fxn authored Oct 11, 2024
2 parents 83277e0 + b453e21 commit 587c798
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/zeitwerk/explicit_namespace.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class << self

# @sig (String) -> Zeitwerk::Loader?
internal def loader_for(mod, cname)
cpath = mod.equal?(Object) ? cname.name : "#{real_mod_name(mod)}::#{cname}"
cpath = Object.equal?(mod) ? cname.name : "#{real_mod_name(mod)}::#{cname}"
@cpaths.delete(cpath)
end

Expand Down

0 comments on commit 587c798

Please sign in to comment.