Skip to content

Commit 8f3d15a

Browse files
committed
Land rapid7#9588, Fix silent fail on missing argument to wmap_sites -d idx
2 parents 36e8f7a + 74021d9 commit 8f3d15a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/wmap.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,11 @@ def cmd_wmap_sites(*args)
140140
end
141141
when '-d'
142142
del_idx = args
143-
if del_idx
143+
if !del_idx.empty?
144144
delete_sites(del_idx.select {|d| d =~ /^[0-9]*$/}.map(&:to_i).uniq)
145145
return
146146
else
147-
print_error("Provide index of site to delete")
147+
print_error("No index provided.")
148148
end
149149
when '-l'
150150
view_sites

0 commit comments

Comments
 (0)