提交 86b02e7b 编写于 作者: A Aaron Patterson

use unless instead of if !

上级 676a0016
......@@ -79,7 +79,7 @@ def initialize_copy(other)
end
def []=(key, value)
@keys << key if !has_key?(key)
@keys << key unless has_key?(key)
super
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册