Remove redunant logic

This commit is contained in:
Mike Angell
2019-09-20 19:01:29 +10:00
parent 3ffae9a6e4
commit 331b2a2e96
2 changed files with 3 additions and 5 deletions

View File

@@ -66,9 +66,6 @@ module Liquid
s = S_VAR
output << current
current = t
elsif t == T_VAR_OPEN && s == S_TAG
s = S_VAR
current += t
elsif t == T_SIN_QUOT && s == S_TAG
s = S_TAG_SIN
current += t

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'test_helper'
class AssignTagTest < Minitest::Test
@@ -14,5 +16,4 @@ class AssignTagTest < Minitest::Test
def test_liquid_issue_701
assert_template_result(" contents: _{% endraw %}_", "{% assign endraw = '{% endraw %}' %} contents: _{{endraw}}_")
end
end
end