mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-20 11:20:41 -07:00
micro optimization
This commit is contained in:
@@ -125,9 +125,7 @@ module Liquid
|
|||||||
if byte_b != CLOSE_CURLEY && byte_b != PERCENTAGE
|
if byte_b != CLOSE_CURLEY && byte_b != PERCENTAGE
|
||||||
byte_a = byte_b
|
byte_a = byte_b
|
||||||
next
|
next
|
||||||
end
|
elsif byte_a == CLOSE_CURLEY && byte_b == CLOSE_CURLEY
|
||||||
|
|
||||||
if byte_a == CLOSE_CURLEY && byte_b == CLOSE_CURLEY
|
|
||||||
return ss.string.byteslice(start, ss.pos - start)
|
return ss.string.byteslice(start, ss.pos - start)
|
||||||
elsif byte_a == OPEN_CURLEY && byte_b == PERCENTAGE
|
elsif byte_a == OPEN_CURLEY && byte_b == PERCENTAGE
|
||||||
return next_tag_token(ss, start)
|
return next_tag_token(ss, start)
|
||||||
|
|||||||
Reference in New Issue
Block a user