Update rubocop to v1.54.1 (#25627)
This commit is contained in:
parent
e7b0d1e23c
commit
1a6c2e450a
5 changed files with 7 additions and 7 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
module DomainControlHelper
|
||||
def domain_not_allowed?(uri_or_domain)
|
||||
return if uri_or_domain.blank?
|
||||
return false if uri_or_domain.blank?
|
||||
|
||||
domain = if uri_or_domain.include?('://')
|
||||
Addressable::URI.parse(uri_or_domain).host
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue