Skip to content

Commit

Permalink
Remove leftovers
Browse files Browse the repository at this point in the history
  • Loading branch information
gvladika committed Sep 24, 2024
1 parent 3c18062 commit 415e65e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slither/detectors/statements/unused_custom_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ def _detect(self) -> List[Output]:

# Collect all custom errors defined in the contracts
for contract in self.compilation_unit.contracts:
contract.custom_errors_declared
for custom_error in contract.custom_errors:
declared_custom_errors.append(custom_error)

Expand All @@ -76,6 +75,7 @@ def _detect(self) -> List[Output]:
):
unused_custom_errors.append(declared_error)

# Format results
results = []
if len(unused_custom_errors) > 0:
info: DETECTOR_INFO = ["The following unused error(s) should be removed:"]
Expand Down

0 comments on commit 415e65e

Please sign in to comment.