From 5347e374e0cfa35ae61b6ca10df0b444ff931f47 Mon Sep 17 00:00:00 2001 From: Erwan Date: Mon, 27 Apr 2020 09:26:26 +0200 Subject: [PATCH] Fixes rubocop last offence! --- app/finders/passwords/xml_rpc_multicall.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/finders/passwords/xml_rpc_multicall.rb b/app/finders/passwords/xml_rpc_multicall.rb index 5b83e63c..cf1b4d67 100644 --- a/app/finders/passwords/xml_rpc_multicall.rb +++ b/app/finders/passwords/xml_rpc_multicall.rb @@ -101,9 +101,9 @@ module WPScan progress_bar.log('Parsing error, might be caused by a too high --max-passwords value (such as >= 2k)') end - if /requested method [^ ]+ does not exist/i.match?(res.body) - progress_bar.log('The requested method is not supported') - end + return unless /requested method [^ ]+ does not exist/i.match?(res.body) + + progress_bar.log('The requested method is not supported') end end end