Skip to content

Commit

Permalink
chore_: use const for dots
Browse files Browse the repository at this point in the history
  • Loading branch information
qfrank committed Feb 14, 2025
1 parent 24cd545 commit 9a4053b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9a4053b

Please sign in to comment.