Skip to content

Commit b90ff36

Browse files
committed
Rewriting the condition 'if' for only one line
1 parent 21e964e commit b90ff36

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

modules/auxiliary/scanner/http/wp_dukapress_file_read.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,7 @@ def run_host(ip)
5656
}
5757
})
5858

59-
if res &&
60-
res.code == 200 &&
61-
res.body.length > 0
59+
if res && res.code == 200 && res.body.length > 0
6260

6361
print_status('Downloading file...')
6462
print_line("\n#{res.body}")

0 commit comments

Comments
 (0)