Remove superfluous session check in the post mixin
parent
e5d3feebea
commit
8605992cdf
|
@ -29,10 +29,6 @@ module Msf::PostMixin
|
|||
#
|
||||
# @raise [OptionValidateError] if {#session} returns nil
|
||||
def setup
|
||||
unless session
|
||||
raise Msf::OptionValidateError.new(["SESSION (not specified)"])
|
||||
end
|
||||
|
||||
unless session_compatible?(session)
|
||||
raise Msf::OptionValidateError.new(["SESSION (type not valid for this module)"])
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue