Skip to content

Commit 123aa0b

Browse files
committed
fix syntax error
1 parent 2b45363 commit 123aa0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/liquid/standardfilters.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,7 @@ def default(input, default_value = '', options = {})
957957
# @liquid_syntax array | sum
958958
# @liquid_return [number]
959959
def sum(input, property = nil)
960-
property = Liquid::Utils.to_s(property) unless property.nil? else property
960+
property = property.nil? ? nil : Utils.to_s(property)
961961

962962
ary = InputIterator.new(input, context)
963963
return 0 if ary.empty?

0 commit comments

Comments
 (0)