From f549a862f8a05e552965ec28cdbaf1ca3c1a76be Mon Sep 17 00:00:00 2001 From: Petr Date: Tue, 30 Jun 2026 11:12:48 +0200 Subject: [PATCH] chore(gopher): remove unused lineCount variable --- internal/protocol/gopher/gopher.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/internal/protocol/gopher/gopher.go b/internal/protocol/gopher/gopher.go index f2f1596..332d311 100644 --- a/internal/protocol/gopher/gopher.go +++ b/internal/protocol/gopher/gopher.go @@ -228,7 +228,6 @@ func (p *Protocol) downloadText(ctx context.Context, reader *bufio.Reader, req * // new one — same convention as Gemini. var bytesWritten int64 var skipped int64 - lineCount := 0 for { select { @@ -295,7 +294,6 @@ func (p *Protocol) downloadText(ctx context.Context, reader *bufio.Reader, req * } bytesWritten += int64(n) } - lineCount++ if req.ProgressCallback != nil { speed := float64(bytesWritten) / time.Since(startTime).Seconds()