Skip to content

Commit 4d738ec

Browse files
committed
Minor
1 parent 561a6f8 commit 4d738ec

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

slither/detectors/assembly/return_instead_of_leave.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,11 @@ def _detect(self) -> List[Output]:
5858
for c in self.contracts:
5959
for f in c.functions_declared:
6060

61-
if len(f.returns) == 2 and f.contains_assembly:
61+
if (
62+
len(f.returns) == 2
63+
and f.contains_assembly
64+
and f.visibility not in ["public", "external"]
65+
):
6266
results += self._check_function(f)
6367

6468
return results

0 commit comments

Comments
 (0)