diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-09-09 00:45:09 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-09-09 00:45:09 +0200 |
commit | 383909dbeeae94234f5ec45aa4d49541261cb515 (patch) | |
tree | e488dea2d1e4e509e4de8ebedbd1b65ff569c512 /formatter/formatter.go | |
parent | d2e325b4071fd340ea08528407a71c0d9b67d8a0 (diff) |
Consistent code style
Diffstat (limited to 'formatter/formatter.go')
-rw-r--r-- | formatter/formatter.go | 2 |
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-- } |