add .luacheckrc and fix linter issues

This commit is contained in:
kyazdani42
2020-06-08 11:23:30 +02:00
parent 1e67a7c6f4
commit 18dac0ed84
7 changed files with 40 additions and 24 deletions

View File

@@ -51,8 +51,8 @@ local function create_root(cwd)
return true
end
function M.update_status(entries, cwd)
local cwd = cwd:gsub(' ', '\\ ')
function M.update_status(entries, _cwd)
local cwd = _cwd:gsub(' ', '\\ ')
local git_root, git_status = get_git_root(cwd)
if not git_root then
if not create_root(cwd) then