From eec01e79ff44a36b788ea37c8a85fde0fbb4f72c Mon Sep 17 00:00:00 2001 From: sinn3r Date: Sun, 26 Jan 2014 16:25:30 -0600 Subject: [PATCH] No explicit "return" --- lib/msf/core/auxiliary/scanner.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/msf/core/auxiliary/scanner.rb b/lib/msf/core/auxiliary/scanner.rb index 5ab138b446..d91e3469a8 100644 --- a/lib/msf/core/auxiliary/scanner.rb +++ b/lib/msf/core/auxiliary/scanner.rb @@ -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