From 383909dbeeae94234f5ec45aa4d49541261cb515 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 9 Sep 2023 00:45:09 +0200 Subject: Consistent code style --- formatter/formatter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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-- } -- cgit v1.2.3