cleanup: tidied up if statement

Co-authored-by: alpharush <0xalpharush@protonmail.com>
pull/1375/head
Paladin - Team Account 2 years ago committed by GitHub
parent 2ea2f0a3f7
commit 2f7e4ac6a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      slither/detectors/variables/possible_const_state_variables.py

@ -37,9 +37,7 @@ class ConstCandidateStateVars(AbstractDetector):
t = v.type
if isinstance(t, ElementaryType):
return True
if isinstance(t, UserDefinedType):
type_t = t.type
if isinstance(type_t, Contract):
if isinstance(t, UserDefinedType) and isinstance(t.type, Contract):
return True
return False

Loading…
Cancel
Save