diff --git a/lib/wpscan/wp_target.rb b/lib/wpscan/wp_target.rb index dd5d0ca8..8170070d 100644 --- a/lib/wpscan/wp_target.rb +++ b/lib/wpscan/wp_target.rb @@ -71,9 +71,7 @@ class WpTarget < WebSite # Let's check if the login url is redirected (to https url for example) redirection = redirection(url) - if redirection - url = redirection - end + url = redirection if redirection url end