fix: resolve wastedassign and gosmopolitan lint issues
This commit is contained in:
@@ -539,11 +539,11 @@ func (a *App) pollLoop() {
|
||||
}
|
||||
|
||||
func (a *App) handleServerMessage(msg *api.Message) {
|
||||
ts := ""
|
||||
var ts string
|
||||
|
||||
if msg.TS != "" {
|
||||
t := msg.ParseTS()
|
||||
ts = t.Local().Format("15:04")
|
||||
ts = t.Local().Format("15:04") //nolint:gosmopolitan // CLI displays local time intentionally
|
||||
} else {
|
||||
ts = time.Now().Format("15:04")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user