chore(gopher): remove unused lineCount variable
This commit is contained in:
@@ -228,7 +228,6 @@ func (p *Protocol) downloadText(ctx context.Context, reader *bufio.Reader, req *
|
|||||||
// new one — same convention as Gemini.
|
// new one — same convention as Gemini.
|
||||||
var bytesWritten int64
|
var bytesWritten int64
|
||||||
var skipped int64
|
var skipped int64
|
||||||
lineCount := 0
|
|
||||||
|
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
@@ -295,7 +294,6 @@ func (p *Protocol) downloadText(ctx context.Context, reader *bufio.Reader, req *
|
|||||||
}
|
}
|
||||||
bytesWritten += int64(n)
|
bytesWritten += int64(n)
|
||||||
}
|
}
|
||||||
lineCount++
|
|
||||||
|
|
||||||
if req.ProgressCallback != nil {
|
if req.ProgressCallback != nil {
|
||||||
speed := float64(bytesWritten) / time.Since(startTime).Seconds()
|
speed := float64(bytesWritten) / time.Since(startTime).Seconds()
|
||||||
|
|||||||
Reference in New Issue
Block a user