No explicit "return"

This commit is contained in:
sinn3r
2014-01-26 16:25:30 -06:00
parent f471f50092
commit eec01e79ff
+3 -4
View File
@@ -33,12 +33,11 @@ end
def check
nmod = self.replicant
nmod = replicant
begin
code = nmod.check_host(datastore['RHOST'])
return code
nmod.check_host(datastore['RHOST'])
rescue NoMethodError
return Exploit::CheckCode::Unsupported
Exploit::CheckCode::Unsupported
end
end