DEV: Make rubocop happy.

This commit is contained in:
Guo Xiang Tan
2020-06-17 15:47:05 +08:00
parent 28f6c59612
commit 828ceab64b

View File

@ -86,7 +86,7 @@ module FileStore
return false if url.blank?
begin
parsed_url = URI.parse(URI.encode(url))
parsed_url = URI.parse(UrlHelper.encode(url))
rescue URI::InvalidURIError, URI::InvalidComponentError
return false
end