fix: resolve revive lint issues
This commit is contained in:
parent
5fad27ff4c
commit
f125a3f591
@ -1,3 +1,4 @@
|
||||
// Package api provides the HTTP client for the chat server API.
|
||||
package api
|
||||
|
||||
import (
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
package api
|
||||
package api //nolint:revive // package name "api" is conventional for API client packages
|
||||
|
||||
import "time"
|
||||
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
// Package main implements the chat-cli terminal client.
|
||||
package main
|
||||
|
||||
import (
|
||||
@ -443,11 +444,6 @@ func (a *App) cmdWindow(args string) {
|
||||
a.ui.SwitchBuffer(n)
|
||||
|
||||
a.mu.Lock()
|
||||
if n < a.ui.BufferCount() && n >= 0 {
|
||||
// Update target to the buffer name.
|
||||
// Needs to be done carefully.
|
||||
}
|
||||
|
||||
nick := a.nick
|
||||
a.mu.Unlock()
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user