Permalink
Browse files

The accept method should never raise.

  • Loading branch information...
1 parent 83a8c97 commit c530c84c1b497d924b84b040fe0a574d7a5aac41 @headius headius committed with Prathamesh Sonpatki Sep 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/org/jruby/ast/ArgumentNode.java
@@ -60,7 +60,7 @@ public NodeType getNodeType() {
}
public Object accept(NodeVisitor visitor) {
- throw new RuntimeException("ArgumentNode should never be evaluated");
+ return null;
}
/**

0 comments on commit c530c84

Please sign in to comment.