From b2d1c25b8efe7d2163fe0a9ef41b2ceeae1d392a Mon Sep 17 00:00:00 2001 From: erwanlr Date: Mon, 26 Jan 2015 18:19:49 +0100 Subject: [PATCH] Uses inline if --- lib/wpscan/wp_target.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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