Skip to content

Commit a627c3c

Browse files
Removed unnecessary return statements.
1 parent 6fa8f40 commit a627c3c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

modules/auxiliary/scanner/mysql/mysql_writable_dirs.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,8 @@ def check_dir(dir)
6464
res = mysql_query_no_handle("SELECT _utf8'test' INTO DUMPFILE '#{dir}/" + datastore['FILE_NAME'] + "'")
6565
rescue ::RbMysql::ServerError => e
6666
vprint_warning("#{e.to_s}")
67-
return
6867
rescue Rex::ConnectionTimeout => e
6968
vprint_error("Timeout: #{e.message}")
70-
return
7169
else
7270
print_good("#{dir} is writeable")
7371
report_note(
@@ -79,8 +77,6 @@ def check_dir(dir)
7977
:update => :unique_data
8078
)
8179
end
82-
83-
return
8480
end
8581

8682
end

0 commit comments

Comments
 (0)