Skip to content

Commit 0929036

Browse files
committed
Remove Outcome#transition method
I don't think this method is serving much purpose. If the `transition` method is called on an instance of `Outcome`, a `NoMethodError` exception will be raised which should give just as much (if not more) information than this `InvalidNode` exception.
1 parent 2bb62d7 commit 0929036

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/smart_answer/outcome.rb

-4
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,5 @@ class Outcome < Node
33
def outcome?
44
true
55
end
6-
7-
def transition(*_args)
8-
raise InvalidNode
9-
end
106
end
117
end

0 commit comments

Comments
 (0)