Skip to content

Commit 51bb950

Browse files
committed
Avoid return where not required
1 parent b0a0544 commit 51bb950

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

modules/exploits/unix/webapp/drupal_restws_exec.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,10 @@ def check
6363
}
6464
)
6565
if res && res.body.include?(r)
66-
return Exploit::CheckCode::Vulnerable
66+
Exploit::CheckCode::Vulnerable
67+
else
68+
Exploit::CheckCode::Safe
6769
end
68-
return Exploit::CheckCode::Safe
6970
end
7071

7172
def exploit

0 commit comments

Comments
 (0)