Skip to content

Commit

Permalink
fix: unwanted extra return (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
s1n7ax committed Jul 28, 2023
1 parent 886f541 commit 944c2fc
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions lua/window-picker/hints/statusline-winbar-hint.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ end
--- Shows the characters in status line
--- @param windows number[] windows to draw the hints on
function M:draw(windows)
local hint_type = unpack(self:get_hint_type())
local hint_type = self:get_hint_type()

local g_opts_to_cap = self.opt_cap[hint_type].g
local w_opts_to_cap = self.opt_cap[hint_type].w
Expand Down Expand Up @@ -163,16 +163,10 @@ function M:get_hint_type()
end

if use_winbar then
return {
'winbar',
'WinBar',
}
return 'winbar'
end

return {
'statusline',
'StatusLine',
}
return 'statusline'
end

function M:set_plugin_hl()
Expand Down

0 comments on commit 944c2fc

Please sign in to comment.