Skip to content

Commit 23d4113

Browse files
committed
git_statuses -> git_status for consistency
1 parent bdc2c70 commit 23d4113

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

lua/nvim-tree/explorer/init.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ end
2424

2525
function Explorer:_load(node)
2626
local cwd = node.link_to or node.absolute_path
27-
local git_statuses = git.load_project_status(cwd)
28-
M.explore(node, git_statuses)
27+
local git_status = git.load_project_status(cwd)
28+
M.explore(node, git_status)
2929
end
3030

3131
function Explorer:expand(node)

lua/nvim-tree/renderer/components/git.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,19 +60,19 @@ local function warn_status(git_status)
6060
end
6161

6262
local function get_icons_(node)
63-
local git_statuses = explorer_common.get_git_status(node)
64-
if git_statuses == nil then
63+
local git_status = explorer_common.get_git_status(node)
64+
if git_status == nil then
6565
return nil
6666
end
6767

6868
local inserted = {}
6969
local iconss = {}
7070

71-
for _, git_status in pairs(git_statuses) do
72-
local icons = M.git_icons[git_status]
71+
for _, s in pairs(git_status) do
72+
local icons = M.git_icons[s]
7373
if not icons then
7474
if not M.config.highlight_git then
75-
warn_status(git_status)
75+
warn_status(s)
7676
end
7777
return nil
7878
end

0 commit comments

Comments
 (0)