From 331b2a2e969d9b6b98357e923684f0c45e212bfb Mon Sep 17 00:00:00 2001 From: Mike Angell Date: Fri, 20 Sep 2019 19:01:29 +1000 Subject: [PATCH] Remove redunant logic --- lib/liquid/tokenizer.rb | 3 --- test/integration/tags/assign_tag_test.rb | 5 +++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/liquid/tokenizer.rb b/lib/liquid/tokenizer.rb index c7f9a7b..d6aef88 100644 --- a/lib/liquid/tokenizer.rb +++ b/lib/liquid/tokenizer.rb @@ -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 diff --git a/test/integration/tags/assign_tag_test.rb b/test/integration/tags/assign_tag_test.rb index 107f257..84e0c06 100644 --- a/test/integration/tags/assign_tag_test.rb +++ b/test/integration/tags/assign_tag_test.rb @@ -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 \ No newline at end of file +end