refactor: rename tokenCommand to tokenCmd

This commit is contained in:
ayn2op 2026-05-11 21:20:01 -04:00
parent 5aa389a627
commit d9020d759d
2 changed files with 2 additions and 2 deletions

View file

@ -85,7 +85,7 @@ func (m *Model) Update(msg tview.Msg) tview.Cmd {
case tview.InitMsg:
var cmd tview.Cmd
if token := os.Getenv(tokenEnvVarKey); token != "" {
cmd = tokenCommand(token)
cmd = tokenCmd(token)
} else {
cmd = getToken()
}

View file

@ -10,7 +10,7 @@ import (
type tokenMsg string
func tokenCommand(token string) tview.Cmd {
func tokenCmd(token string) tview.Cmd {
return func() tview.Msg {
return tokenMsg(token)
}