Skip to content

Commit

Permalink
refactor: do not declare nil on skip
Browse files Browse the repository at this point in the history
  • Loading branch information
hishamhm committed Jan 28, 2025
1 parent 09add09 commit 5e0285c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ if TL_DEBUG then
TL_DEBUG_MAXLINE = math.tointeger(-max)
elseif max > 1 then
local count = 0
local skip = nil
local skip
debug.sethook(function(event)
if event == "call" or event == "tail call" or event == "return" then
local info = debug.getinfo(2)
Expand Down
2 changes: 1 addition & 1 deletion tl.tl
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ if TL_DEBUG then
TL_DEBUG_MAXLINE = math.tointeger(-max)
elseif max > 1 then
local count = 0
local skip: string = nil
local skip: string
debug.sethook(function(event: debug.HookEvent)
if event == "call" or event == "tail call" or event == "return" then
local info <const> = debug.getinfo(2)
Expand Down

0 comments on commit 5e0285c

Please sign in to comment.