mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-12 15:30:39 -07:00
remove unnecessary flatten filter
This commit is contained in:
@@ -127,11 +127,6 @@ module Liquid
|
||||
end
|
||||
end
|
||||
|
||||
# flatten the given input
|
||||
def flatten(input)
|
||||
Array(input).flatten
|
||||
end
|
||||
|
||||
# Replace occurrences of a string with another
|
||||
def replace(input, string, replacement = ''.freeze)
|
||||
input.to_s.gsub(string, replacement.to_s)
|
||||
|
||||
Reference in New Issue
Block a user