mruby-hash-ext: use NONE.equal?() for NONE comparison; ref #6262

This commit is contained in:
Yukihiro "Matz" Matsumoto
2024-05-10 20:36:01 +09:00
parent 4d7ad4863f
commit dcee404ebb
+1 -1
View File
@@ -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}"