From 8d63be82a7f690182f1ff04af9739ad2c5bd471d Mon Sep 17 00:00:00 2001 From: Priyanka Bose Date: Thu, 5 Sep 2024 12:58:42 -0700 Subject: [PATCH] Update slither/analyses/data_dependency/data_dependency.py Co-authored-by: alpharush <0xalpharush@protonmail.com> --- slither/analyses/data_dependency/data_dependency.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]]