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. 6
      slither/detectors/variables/possible_const_state_variables.py

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

Loading…
Cancel
Save