Skip to content

Commit

Permalink
style: discard unused params in default hook impls
Browse files Browse the repository at this point in the history
  • Loading branch information
willothy committed Dec 25, 2024
1 parent 6a91020 commit 7c5532c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lua/flatten/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ Flatten.callbacks = Callbacks
---@param argv string[]
---@return boolean
function Callbacks.should_block(argv)
local _ = argv
return false
end

Expand Down Expand Up @@ -192,19 +193,19 @@ end
---Called before a nested session is opened.
---@param opts Flatten.PreOpenContext
function Callbacks.pre_open(opts)
return
local _ = opts
end

---Called after a nested session is opened.
---@param opts Flatten.PostOpenContext
function Callbacks.post_open(opts)
return
local _ = opts
end

---Called when a nested session is done waiting for the host.
---@param opts Flatten.BlockEndContext
function Callbacks.block_end(opts)
return
local _ = opts
end

---Executed when there are no files to open, to determine whether
Expand Down

0 comments on commit 7c5532c

Please sign in to comment.