Fix offenses from the new version of rubocop.

This commit is contained in:
Dylan Thacker-Smith
2015-09-25 19:34:44 -04:00
parent 27c6b8074a
commit 704937bc00
8 changed files with 18 additions and 16 deletions
+3 -1
View File
@@ -118,6 +118,8 @@ Style/ClassVars:
Style/PerlBackrefs: Style/PerlBackrefs:
Enabled: false Enabled: false
Style/TrivialAccessors:
AllowPredicates: true
Style/WordArray: Style/WordArray:
Enabled: false Enabled: false
+1 -1
View File
@@ -42,7 +42,7 @@ module Liquid
end end
def url_encode(input) def url_encode(input)
CGI.escape(input) rescue input CGI.escape(input) unless input.nil?
end end
def slice(input, offset, length = nil) def slice(input, offset, length = nil)