mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-19 19:00:39 -07:00
undo mini opt
This commit is contained in:
@@ -68,7 +68,6 @@ module Liquid
|
|||||||
|
|
||||||
def shift
|
def shift
|
||||||
token = @tokens[@offset]
|
token = @tokens[@offset]
|
||||||
@tokens[@offset] = nil
|
|
||||||
|
|
||||||
return unless token
|
return unless token
|
||||||
|
|
||||||
@@ -205,6 +204,5 @@ module Liquid
|
|||||||
end
|
end
|
||||||
|
|
||||||
# Remove this once we can depend on strscan >= 3.1.1
|
# Remove this once we can depend on strscan >= 3.1.1
|
||||||
# Tokenizer = StringScanner.instance_methods.include?(:scan_byte) ? Tokenizer2 : Tokenizer1
|
Tokenizer = StringScanner.instance_methods.include?(:scan_byte) ? Tokenizer2 : Tokenizer1
|
||||||
Tokenizer = Tokenizer2
|
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user