Skip to content

Commit

Permalink
chore: linting and style check
Browse files Browse the repository at this point in the history
  • Loading branch information
wllfaria committed Nov 11, 2024
1 parent cd6c60e commit 67abfe0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ jobs:
sudo apt-get install luarocks -y
sudo luarocks install luacheck
- name: Lint
run: luacheck lua/ --globals vim
run: luacheck lua/ --globals vim --ignore 4*
10 changes: 5 additions & 5 deletions lua/ledger/tui/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ end

function LedgerTui:shutdown()
self.layout:restore_window_options()
self.layout:close_buffer(self.layout.reports_buf)
self.layout:close_buffer(self.layout.help_buf)
self.layout:close_buffer(self.layout.hint_buf)
self.layout:close_buffer(self.layout.output_buf)
self.layout:close_buffer(self.layout.filters_buf)
self.layout.close_buffer(self.layout.reports_buf)
self.layout.close_buffer(self.layout.help_buf)
self.layout.close_buffer(self.layout.hint_buf)
self.layout.close_buffer(self.layout.output_buf)
self.layout.close_buffer(self.layout.filters_buf)
self.running = false
end

Expand Down
6 changes: 1 addition & 5 deletions lua/ledger/tui/layout.lua
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function LedgerTuiLayout.set_buffer_options()
end

--- @param buffer integer
function LedgerTuiLayout:close_buffer(buffer)
function LedgerTuiLayout.close_buffer(buffer)
if buffer == nil then
return
end
Expand Down Expand Up @@ -477,10 +477,6 @@ local function focus_reports()
end
end

function LedgerTuiLayout:focus_reports()
focus_reports()
end

local function focus_filters()
local layout = require("ledger.tui.layout").get()

Expand Down

0 comments on commit 67abfe0

Please sign in to comment.