more micro optimization

This commit is contained in:
Michael Go
2024-10-24 22:38:07 -03:00
parent 7868aee751
commit 4d3f1a71a2
+1 -1
View File
@@ -65,7 +65,7 @@ module Liquid
def next_text_token
start = @ss.pos
if @ss.scan_until(TAG_OR_VARIABLE_START).nil?
if @ss.skip_until(TAG_OR_VARIABLE_START).nil?
token = @ss.rest
@ss.terminate
return token