Freeze mutable object assigned to constant

This commit is contained in:
Ashwin Maroli
2019-04-29 23:50:49 +05:30
parent 4684478e94
commit 9ef6f9b642

View File

@@ -44,7 +44,7 @@ module Liquid
tok[0] == type
end
CONSUME_TOKENS = [:string, :number]
CONSUME_TOKENS = [:string, :number].freeze
private_constant :CONSUME_TOKENS
def expression