Skip to content

Commit 83ce967

Browse files
committed
Clean up hash syntax as per style guide
1 parent 6c84081 commit 83ce967

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def change_host_info(rws, data)
224224
rw.each do |ip|
225225
id = framework.db.get_host(:address => ip).id
226226
framework.db.hosts.update(id, :info => data)
227-
framework.db.report_note({:host=>ip, :type=>'host.info', :note=>data})
227+
framework.db.report_note(:host => ip, :type => 'host.info', :note => data)
228228
end
229229
end
230230
end
@@ -234,7 +234,7 @@ def change_host_name(rws, data)
234234
rw.each do |ip|
235235
id = framework.db.get_host(:address => ip).id
236236
framework.db.hosts.update(id, :name => data)
237-
framework.db.report_note({:host=>ip, :type=>'host.name', :note=>data})
237+
framework.db.report_note(:host => ip, :type => 'host.name', :note => data)
238238
end
239239
end
240240
end
@@ -244,7 +244,7 @@ def change_host_comment(rws, data)
244244
rw.each do |ip|
245245
id = framework.db.get_host(:address => ip).id
246246
framework.db.hosts.update(id, :comments => data)
247-
framework.db.report_note({:host=>ip, :type=>'host.comments', :note=>data})
247+
framework.db.report_note(:host => ip, :type => 'host.comments', :note => data)
248248
end
249249
end
250250
end

0 commit comments

Comments
 (0)