mirror of
https://github.com/kemko/liquid.git
synced 2026-01-03 16:55:40 +03:00
Remove redundant nil check
This commit is contained in:
@@ -39,7 +39,7 @@ module Liquid
|
||||
end
|
||||
|
||||
def disabled?(context, output)
|
||||
if context.registers['disabled_tags']&.disabled?(tag_name)
|
||||
if context.registers['disabled_tags'].disabled?(tag_name)
|
||||
output << disabled_error_message
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user