Skip to content

Commit

Permalink
fix: for linter.
Browse files Browse the repository at this point in the history
  • Loading branch information
obaland committed Jul 28, 2023
1 parent 1b14a1e commit 8e74e5c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion lua/vfiler/columns/column.lua
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ end

function Column:_surround_text(syntax, text, winid)
local mark = self._marks[syntax]
if (not mark) or vim.get_win_option(winid, 'conceallevel') < 2 then
if not mark or vim.get_win_option(winid, 'conceallevel') < 2 then
return text
end
return mark.start_mark .. text .. mark.end_mark
Expand Down
12 changes: 0 additions & 12 deletions lua/vfiler/libs/git.lua
Original file line number Diff line number Diff line change
Expand Up @@ -88,18 +88,6 @@ local function update_directory_statuses(rootpath, statuses)
return statuses
end

local function update_dirstatus(dirstatus, status)
if status.us == '!' then
return
end
if status.us ~= ' ' and status.us ~= '?' then
dirstatus.us = '*'
end
if status.them ~= ' ' then
dirstatus.them = '*'
end
end

function M.get_toplevel(dirpath)
local command = ('git -C "%s" rev-parse --show-toplevel'):format(dirpath)
local path = core.system(command)
Expand Down

0 comments on commit 8e74e5c

Please sign in to comment.