mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
mruby-hash-ext: use NONE.equal?() for NONE comparison; ref #6262
This commit is contained in:
@@ -164,7 +164,7 @@ class Hash
|
||||
unless self.key?(key)
|
||||
if block
|
||||
block.call(key)
|
||||
elsif none != NONE
|
||||
elsif !NONE.equal?(none)
|
||||
none
|
||||
else
|
||||
raise KeyError, "Key not found: #{key.inspect}"
|
||||
|
||||
Reference in New Issue
Block a user