Uses inline if
This commit is contained in:
@@ -71,9 +71,7 @@ class WpTarget < WebSite
|
|||||||
|
|
||||||
# Let's check if the login url is redirected (to https url for example)
|
# Let's check if the login url is redirected (to https url for example)
|
||||||
redirection = redirection(url)
|
redirection = redirection(url)
|
||||||
if redirection
|
url = redirection if redirection
|
||||||
url = redirection
|
|
||||||
end
|
|
||||||
|
|
||||||
url
|
url
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user