From 9a4053b3c4dc94bf717e65ddcebcb779bb0ac22e Mon Sep 17 00:00:00 2001 From: frank Date: Fri, 14 Feb 2025 11:45:44 +0800 Subject: [PATCH] chore_: use const for dots --- common/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/utils.go b/common/utils.go index 2a7b2f7789..f9841a2ca6 100644 --- a/common/utils.go +++ b/common/utils.go @@ -128,7 +128,7 @@ func TruncateWithDotN(s string, n int) string { n = 2 } - dots := ".." + const dots = ".." // For n characters total (excluding dots), we want to keep: // - ceil(n/2) characters from the start // - floor(n/2) characters from the end