mirror of
https://github.com/Shopify/liquid.git
synced 2026-10-04 09:35:14 -07:00
Fix offenses from the new version of rubocop.
This commit is contained in:
+3
-1
@@ -118,6 +118,8 @@ Style/ClassVars:
|
||||
Style/PerlBackrefs:
|
||||
Enabled: false
|
||||
|
||||
Style/TrivialAccessors:
|
||||
AllowPredicates: true
|
||||
|
||||
Style/WordArray:
|
||||
Enabled: false
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ module Liquid
|
||||
end
|
||||
|
||||
def url_encode(input)
|
||||
CGI.escape(input) rescue input
|
||||
CGI.escape(input) unless input.nil?
|
||||
end
|
||||
|
||||
def slice(input, offset, length = nil)
|
||||
|
||||
Reference in New Issue
Block a user