aboutsummaryrefslogtreecommitdiff
path: root/formatter/formatter.go
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-09-09 00:45:09 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-09-09 00:45:09 +0200
commit383909dbeeae94234f5ec45aa4d49541261cb515 (patch)
treee488dea2d1e4e509e4de8ebedbd1b65ff569c512 /formatter/formatter.go
parentd2e325b4071fd340ea08528407a71c0d9b67d8a0 (diff)
Consistent code style
Diffstat (limited to 'formatter/formatter.go')
-rw-r--r--formatter/formatter.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/formatter/formatter.go b/formatter/formatter.go
index 96e19d1..5eae8b7 100644
--- a/formatter/formatter.go
+++ b/formatter/formatter.go
@@ -95,8 +95,8 @@ func trimLeftSpaces(s string) string {
}
func trimRightSpaces(s string) string {
+ i := len(s) - 1
rs := []rune(s)
- i := len(rs) - 1
for i >= 0 && unicode.IsSpace(rs[i]) {
i--
}