From 16746f58e273c9ecf86a4b837dc5ef7309c57cd2 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Mon, 6 May 2024 15:50:32 -0700 Subject: [PATCH] ast/introspection: Drop duplicate None check The AstInterpreter does this check as well, so don't do it twice. --- mesonbuild/ast/introspection.py | 1 - 1 file changed, 1 deletion(-) diff --git a/mesonbuild/ast/introspection.py b/mesonbuild/ast/introspection.py index b2eb1f8cd633..3e8d564e2fbf 100644 --- a/mesonbuild/ast/introspection.py +++ b/mesonbuild/ast/introspection.py @@ -55,7 +55,6 @@ def __init__(self, subproject: SubProject = SubProject(''), subproject_dir: str = 'subprojects', env: T.Optional[environment.Environment] = None): - visitors = visitors if visitors is not None else [] super().__init__(source_root, subdir, subproject, visitors=visitors) options = IntrospectionHelper(cross_file)