Fixes rubocop last offence!

This commit is contained in:
Erwan
2020-04-27 09:26:26 +02:00
committed by GitHub
parent 1a49a628de
commit 5347e374e0

View File

@@ -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