diff --git a/slither/analyses/data_dependency/data_dependency.py b/slither/analyses/data_dependency/data_dependency.py index a35b102e3..8272590db 100644 --- a/slither/analyses/data_dependency/data_dependency.py +++ b/slither/analyses/data_dependency/data_dependency.py @@ -301,7 +301,7 @@ def get_must_depends_on(variable: SUPPORTED_TYPES) -> List: :return: Variable | None """ must_dependencies = compute_must_dependencies(variable) - if len(must_dependencies) > 1 or len(must_dependencies) == 0: + if len(must_dependencies) != 1: return [] return [list(must_dependencies)[0]]