fix(format): allow custom_format to return early (#1531)
This commit is contained in:
1 parent
6f9adbd4fb
commit
1c878b9d06
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user