Prefer to_s over || ''

Oops, I wasn't thinking clearly. to_s is cleaner.
GSoC/Meterpreter_Web_Console
William Vu 2018-09-20 20:28:19 -05:00
parent 0a9e48af74
commit c875f66154
1 changed files with 1 additions and 1 deletions

View File

@ -219,7 +219,7 @@ class MetasploitModule < Msf::Auxiliary
1.upto(leak_count) do |count|
vprint_status("Leaking heartbeat response ##{count}")
bleeded << (bleed || '')
bleeded << bleed.to_s
end
loot_and_report(bleeded)