Change kind_of? to is_a?
parent
2c92e85494
commit
7ec5c06738
|
@ -47,7 +47,7 @@ module Msf::DBManager::SessionEvent
|
||||||
end
|
end
|
||||||
|
|
||||||
session_id = nil
|
session_id = nil
|
||||||
if session.kind_of?(Mdm::Session)
|
if session.is_a?(Mdm::Session)
|
||||||
session_id = session.id
|
session_id = session.id
|
||||||
elsif session.is_a?(Hash) && session.key?(:id)
|
elsif session.is_a?(Hash) && session.key?(:id)
|
||||||
session_id = session[:id]
|
session_id = session[:id]
|
||||||
|
|
Loading…
Reference in New Issue