summaryrefslogtreecommitdiff
path: root/mesonbuild/ast/visitor.py
diff options
context:
space:
mode:
authorJohn Ericson <git@JohnEricson.me>2020-08-03 11:48:27 -0400
committerJohn Ericson <git@JohnEricson.me>2020-08-03 11:48:27 -0400
commiteaf6343c065842b9719793066e765b2e5f1c2f3b (patch)
tree1bfeac5297ba489721e704e63c28f33d0fb98990 /mesonbuild/ast/visitor.py
parent87aa98c1787d800145853a8e84654e4c54ee1078 (diff)
parent70edf82c6c77902cd64f44848302bbac92d611d8 (diff)
downloadmeson-lang-enum.tar.gz
Merge remote-tracking branch 'upstream/master' into lang-enumlang-enum
Diffstat (limited to 'mesonbuild/ast/visitor.py')
-rw-r--r--mesonbuild/ast/visitor.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/mesonbuild/ast/visitor.py b/mesonbuild/ast/visitor.py
index 37be4632a..451020d2d 100644
--- a/mesonbuild/ast/visitor.py
+++ b/mesonbuild/ast/visitor.py
@@ -113,8 +113,7 @@ class AstVisitor:
self.visit_default_func(node)
for i in node.ifs:
i.accept(self)
- if node.elseblock:
- node.elseblock.accept(self)
+ node.elseblock.accept(self)
def visit_UMinusNode(self, node: mparser.UMinusNode) -> None:
self.visit_default_func(node)