Remove redundant nil check

This commit is contained in:
Mike Angell
2019-09-24 04:22:43 +10:00
parent a6dfb56a5c
commit 695378d8a4

View File

@@ -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