mirror of
https://github.com/kemko/liquid.git
synced 2026-01-01 15:55:40 +03:00
Optimize checking for interrupts by replacing any? with NOT empty?
This commit is contained in:
@@ -73,7 +73,7 @@ module Liquid
|
||||
|
||||
# are there any not handled interrupts?
|
||||
def has_interrupt?
|
||||
@interrupts.any?
|
||||
!@interrupts.empty?
|
||||
end
|
||||
|
||||
# push an interrupt to the stack. this interrupt is considered not handled.
|
||||
|
||||
Reference in New Issue
Block a user