fix(format): allow custom_format to return early (#1531)

This commit is contained in:
loqusion 2023-09-30 10:48:19 -05:00 committed by GitHub
parent 6f9adbd4fb
commit 1c878b9d06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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