Remove redundant nil check

This commit is contained in:
Mike Angell
2019-09-24 04:22:43 +10:00
parent a6dfb56a5c
commit 695378d8a4
+1 -1
View File
@@ -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