Update slither/analyses/data_dependency/data_dependency.py

Co-authored-by: alpharush <0xalpharush@protonmail.com>
must-depend-on
Priyanka Bose 3 months ago committed by GitHub
parent 52416baabe
commit 8d63be82a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      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]]

Loading…
Cancel
Save