Skip to content

Commit effd0c3

Browse files
committed
Fix bug when not updating type
1 parent f124051 commit effd0c3

File tree

1 file changed

+1
-1
lines changed
  • lib/msf/ui/console/command_dispatcher

1 file changed

+1
-1
lines changed

lib/msf/ui/console/command_dispatcher/db.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1224,7 +1224,7 @@ def cmd_loot(*args)
12241224
if mode == :update
12251225
begin
12261226
loot.info = info if info
1227-
if types.size > 1
1227+
if types && types.size > 1
12281228
print_error "May only pass 1 type when performing an update."
12291229
next
12301230
end

0 commit comments

Comments
 (0)