mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-20 11:20:41 -07:00
Remove redunant logic
This commit is contained in:
@@ -66,9 +66,6 @@ module Liquid
|
|||||||
s = S_VAR
|
s = S_VAR
|
||||||
output << current
|
output << current
|
||||||
current = t
|
current = t
|
||||||
elsif t == T_VAR_OPEN && s == S_TAG
|
|
||||||
s = S_VAR
|
|
||||||
current += t
|
|
||||||
elsif t == T_SIN_QUOT && s == S_TAG
|
elsif t == T_SIN_QUOT && s == S_TAG
|
||||||
s = S_TAG_SIN
|
s = S_TAG_SIN
|
||||||
current += t
|
current += t
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class AssignTagTest < Minitest::Test
|
class AssignTagTest < Minitest::Test
|
||||||
@@ -14,5 +16,4 @@ class AssignTagTest < Minitest::Test
|
|||||||
def test_liquid_issue_701
|
def test_liquid_issue_701
|
||||||
assert_template_result(" contents: _{% endraw %}_", "{% assign endraw = '{% endraw %}' %} contents: _{{endraw}}_")
|
assert_template_result(" contents: _{% endraw %}_", "{% assign endraw = '{% endraw %}' %} contents: _{{endraw}}_")
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
Reference in New Issue
Block a user