diff options
| author | Alon Levy <alon@pobox.com> | 2015-01-13 12:19:07 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-01-13 12:28:57 +0200 |
| commit | c7d9b0ff4b0a558e70cd56419c53975e15d71ec2 (patch) | |
| tree | 1ae9dd33a537f6dffdcad9f3e1aef844b5ccab86 /src/client/textanalysis.js | |
| parent | 25162c7b9e483f7a11738b70144a3db34694bb13 (diff) | |
client/graph: find_node__* default to recursion but optional
Diffstat (limited to 'src/client/textanalysis.js')
| -rw-r--r-- | src/client/textanalysis.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/client/textanalysis.js b/src/client/textanalysis.js index 0160ed7b..0c557412 100644 --- a/src/client/textanalysis.js +++ b/src/client/textanalysis.js @@ -477,10 +477,7 @@ var textAnalyser = function (spec) { for (j = i; j >= 0 && tokens[j] === undefined || tokens[j].token !== '#'; --j) {} name = tokens[j + 1] ? tokens[j + 1].token : NEW_NODE_NAME; node = edit_graph.find_node__by_name(name); - if (node === undefined) { - // return the first node by default - util.assert(node !== undefined, "can't find node"); - } + util.assert(node !== undefined, "can't find node"); return node; } |
