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