class CustomUrl < Liquid::Tag
...
def render(_context)
return unless something
#build url
end
Would return just foo.
After the change it returns foo Liquid error: internal
Because this line here throws TypeError: no implicit conversion of nil into String
After https://github.com/Shopify/liquid/pull/1091 the behaviour when a render method of custom tags returns nil has changed. Before something like
that depends on
Would return just
foo
. After the change it returnsfoo Liquid error: internal
Because this line here throwsTypeError: no implicit conversion of nil into String