Skip to content

Commit

Permalink
test(lint): Suppress integer overflow warning
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Sep 3, 2024
1 parent 74609eb commit 562a8de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/player/player.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func (p *Player) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
p.selectedOption = 0
case key.Matches(msg, p.keymap.end):
opts := OptionValues()
p.selectedOption = Option(len(opts) - 1)
p.selectedOption = Option(len(opts) - 1) //nolint:gosec
case key.Matches(msg, p.keymap.help):
p.help.ShowAll = !p.help.ShowAll
p.helpCache.Invalidate()
Expand Down

0 comments on commit 562a8de

Please sign in to comment.