summaryrefslogtreecommitdiff
path: root/src/client/textanalysis.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/textanalysis.js')
-rw-r--r--src/client/textanalysis.js5
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;
}