Skip to content

Commit 506ac24

Browse files
committed
helpers/factory: revert formatter exit code check
1 parent 7bebb35 commit 506ac24

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed
+2-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
return function(opts)
2-
local h = require("null-ls.helpers")
3-
42
-- ignore errors unless otherwise specified
53
if opts.ignore_stderr == nil then
64
opts.ignore_stderr = true
75
end
6+
87
-- for formatters, to_temp_file only works if from_temp_file is also set
98
if opts.to_temp_file then
109
opts.from_temp_file = true
@@ -19,10 +18,5 @@ return function(opts)
1918
return done({ { text = output } })
2019
end
2120

22-
if opts.check_exit_code == nil then
23-
opts.check_exit_code = 0
24-
end
25-
opts.check_exit_code = h.check_exit_code(opts.check_exit_code, false, opts.command)
26-
27-
return h.generator_factory(opts)
21+
return require("null-ls.helpers").generator_factory(opts)
2822
end

0 commit comments

Comments
 (0)