Skip to content

Commit

Permalink
fix: assertion message
Browse files Browse the repository at this point in the history
  • Loading branch information
lewis6991 committed Jul 27, 2023
1 parent 61e50f3 commit 5d73da7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lua/gitsigns/hunks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,7 @@ end
function M.calc_signs(hunk, min_lnum, max_lnum, untracked)
assert(
not untracked or hunk.type == 'add',
string.format(
'Invalid hunk with untracked=%s hunk="%s"',
untracked,
vim.inspect(hunk, untracked, vim.inspect(hunk.head))
)
string.format('Invalid hunk with untracked=%s hunk="%s"', untracked, hunk.head)
)
min_lnum = min_lnum or 1
max_lnum = max_lnum or math.huge
Expand Down

0 comments on commit 5d73da7

Please sign in to comment.