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

This commit is contained in:
loqusion authored and GitHub committed 2023-09-30 17:48:19 +02:00
1 parent 6f9adbd4fb
commit 1c878b9d06
1 file changed
+1 -1
+1 -1
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