提交 7be50103 编写于 作者: A Aaron Patterson

change if! to unless

上级 ed6be596
......@@ -24,7 +24,7 @@ def completed?
end
def set_state(state)
if !VALID_STATES.include?(state)
unless VALID_STATES.include?(state)
raise ArgumentError, "Invalid transaction state: #{state}"
end
@state = state
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册