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()