From f125a3f591097d3901c13df0d0945685e87cc192 Mon Sep 17 00:00:00 2001 From: user Date: Fri, 20 Feb 2026 03:16:09 -0800 Subject: [PATCH] fix: resolve revive lint issues --- cmd/chat-cli/api/client.go | 1 + cmd/chat-cli/api/types.go | 2 +- cmd/chat-cli/main.go | 6 +----- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/cmd/chat-cli/api/client.go b/cmd/chat-cli/api/client.go index 723f771..1145220 100644 --- a/cmd/chat-cli/api/client.go +++ b/cmd/chat-cli/api/client.go @@ -1,3 +1,4 @@ +// Package api provides the HTTP client for the chat server API. package api import ( diff --git a/cmd/chat-cli/api/types.go b/cmd/chat-cli/api/types.go index d5d0a78..ee1d487 100644 --- a/cmd/chat-cli/api/types.go +++ b/cmd/chat-cli/api/types.go @@ -1,4 +1,4 @@ -package api +package api //nolint:revive // package name "api" is conventional for API client packages import "time" diff --git a/cmd/chat-cli/main.go b/cmd/chat-cli/main.go index c20efd0..d0db948 100644 --- a/cmd/chat-cli/main.go +++ b/cmd/chat-cli/main.go @@ -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()