style: format

This commit is contained in:
Folke Lemaitre 2023-09-30 17:50:41 +02:00
parent 5eca3dc3bb
commit 0136bfa4b5
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -35,9 +35,12 @@ function M.format(opts)
return
end
if M.custom_format and Util.try(function()
return M.custom_format(buf)
end, { msg = "Custom formatter failed" }) then
if
M.custom_format
and Util.try(function()
return M.custom_format(buf)
end, { msg = "Custom formatter failed" })
then
return
end