mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-15 08:50:45 -07:00
Remove redundant nil check
This commit is contained in:
+1
-1
@@ -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