From 52a87a7e3ad8fc485e7b71af193375af7690a25f Mon Sep 17 00:00:00 2001 From: Michael Go Date: Thu, 24 Oct 2024 22:56:09 -0300 Subject: [PATCH] more micro optimization --- lib/liquid/tokenizer.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/liquid/tokenizer.rb b/lib/liquid/tokenizer.rb index 81805451..779304cf 100644 --- a/lib/liquid/tokenizer.rb +++ b/lib/liquid/tokenizer.rb @@ -91,7 +91,7 @@ module Liquid byte_a = @ss.scan_byte until @ss.eos? - while byte_a != OPEN_CURLEY && byte_a != CLOSE_CURLEY && @ss.eos? == false + while @ss.eos? == false && byte_a != OPEN_CURLEY && byte_a != CLOSE_CURLEY byte_a = @ss.scan_byte end @@ -122,9 +122,5 @@ module Liquid @ss.string.byteslice(start, @ss.pos - start) end - - def raise_syntax_error(message) - raise SyntaxError, message - end end end