diff options
author | Kurtis Rader <krader@skepticism.us> | 2016-05-04 15:19:47 -0700 |
---|---|---|
committer | Kurtis Rader <krader@skepticism.us> | 2016-05-04 15:32:04 -0700 |
commit | 79f342b954a6f47ee3f1277a899066a654e7c330 (patch) | |
tree | a9386ce1e108a5c046276e4266e0129404fc4ea0 /src/parse_tree.cpp | |
parent | 527e5f52ba5a097a24490065fea23b4627032e4c (diff) |
lint cleanup: eliminate "redundant" errors
This removes some pointless parentheses but the primary focus is removing
redundancies like unnecessary "else" clauses.
Diffstat (limited to 'src/parse_tree.cpp')
-rw-r--r-- | src/parse_tree.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/parse_tree.cpp b/src/parse_tree.cpp index ef79082f..1ec7aa43 100644 --- a/src/parse_tree.cpp +++ b/src/parse_tree.cpp @@ -1349,10 +1349,10 @@ static bool node_has_ancestor(const parse_node_tree_t &tree, const parse_node_t return true; // found it } else if (node.parent == NODE_OFFSET_INVALID) { return false; // no more parents - } else { - // Recurse to the parent. - return node_has_ancestor(tree, tree.at(node.parent), proposed_ancestor); } + + // Recurse to the parent. + return node_has_ancestor(tree, tree.at(node.parent), proposed_ancestor); } const parse_node_t *parse_node_tree_t::find_last_node_of_type(parse_token_type_t type, |