Skip to content

Commit 6fa8f40

Browse files
Use unless instead of if (not ...)
1 parent 63c0b6f commit 6fa8f40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/auxiliary/scanner/mysql/mysql_writable_dirs.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def mysql_query_no_handle(sql)
4545
def run_host(ip)
4646
vprint_status("Login...")
4747

48-
if (not mysql_login_datastore)
48+
unless mysql_login_datastore
4949
print_error('Unable to login to the server.')
5050
return
5151
end

0 commit comments

Comments
 (0)