Skip to content

Commit 13b6f1c

Browse files
committed
Syntax changes
1 parent 2a6a824 commit 13b6f1c

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1711,7 +1711,8 @@ def cmd_sessions(*args)
17111711
session_list = build_sessions_array(sid)
17121712
print_status("Killing the following session(s): #{session_list}")
17131713
session_list.each do |sess|
1714-
if ((session = framework.sessions.get(sess)))
1714+
session = framework.sessions.get(sess)
1715+
if session
17151716
print_status("Killing session #{sess}")
17161717
session.kill
17171718
else

0 commit comments

Comments
 (0)