mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-19 10:52:48 -07:00
more micro optimization
This commit is contained in:
@@ -91,7 +91,7 @@ module Liquid
|
|||||||
byte_a = @ss.scan_byte
|
byte_a = @ss.scan_byte
|
||||||
|
|
||||||
until @ss.eos?
|
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
|
byte_a = @ss.scan_byte
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -122,9 +122,5 @@ module Liquid
|
|||||||
|
|
||||||
@ss.string.byteslice(start, @ss.pos - start)
|
@ss.string.byteslice(start, @ss.pos - start)
|
||||||
end
|
end
|
||||||
|
|
||||||
def raise_syntax_error(message)
|
|
||||||
raise SyntaxError, message
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user