refactor: rename tokenCommand to tokenCmd
This commit is contained in:
parent
5aa389a627
commit
d9020d759d
2 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue