mirror of
https://github.com/NotAShelf/direnv.nvim.git
synced 2025-02-05 16:43:26 +00:00
Fix lints
This commit is contained in:
parent
76aa825d0d
commit
3468d9c7a3
1 changed files with 4 additions and 4 deletions
|
@ -104,15 +104,15 @@ M.deny_direnv = function()
|
||||||
os.execute("direnv deny")
|
os.execute("direnv deny")
|
||||||
end
|
end
|
||||||
|
|
||||||
M._get_rc_status = function(_on_exit)
|
M._get_rc_status = function(callback)
|
||||||
local on_exit = function(obj)
|
local on_exit = function(obj)
|
||||||
local status = vim.json.decode(obj.stdout)
|
local status = vim.json.decode(obj.stdout)
|
||||||
|
|
||||||
if status.state.foundRC == nil then
|
if status.state.foundRC == nil then
|
||||||
return _on_exit(nil, nil)
|
return callback(nil, nil)
|
||||||
end
|
end
|
||||||
|
|
||||||
_on_exit(status.state.foundRC.allowed, status.state.foundRC.path)
|
callback(status.state.foundRC.allowed, status.state.foundRC.path)
|
||||||
end
|
end
|
||||||
|
|
||||||
return vim.system(
|
return vim.system(
|
||||||
|
@ -136,7 +136,7 @@ M._init = function(path)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local write_output = function(err, data)
|
local write_output = function(_, data)
|
||||||
if data then
|
if data then
|
||||||
tempfile:write(data)
|
tempfile:write(data)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue