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