From f492e2cd84a19b69bfe78b870aec04273cea639d Mon Sep 17 00:00:00 2001 From: SnskArora Date: Sat, 22 Mar 2025 18:39:52 +0530 Subject: [PATCH] minor fix --- approval.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/approval.go b/approval.go index 89823ea..0f37c73 100644 --- a/approval.go +++ b/approval.go @@ -289,11 +289,11 @@ func splitLongString(input string, maxLength int) []string { currentLength := 0 for i, line := range lines { + lineLength := len(line) if i < len(lines)-1 { lineLength++ } - lineLength := len(line) if currentLength+lineLength > maxLength { if currentChunk.Len() > 0 { result = append(result, currentChunk.String())