commit a45b1303d8ef8e9bb74a0bc6d489a9bc161c0806 parent 38ac6f12dfa813e37188500cc1d08d33f979b6cd Author: n0tr1v <n0tr1v@protonmail.com> Date: Thu, 17 Nov 2022 12:17:11 -0500 simplify code Diffstat:
| M | cmd/art/main.go | | | 5 | +---- |
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/cmd/art/main.go b/cmd/art/main.go @@ -154,11 +154,8 @@ func getClassName(idx int) string { } } if !found { - // Add a new letter and reset all to "a" + // Add a new letter out = append(out, firstRune) - for i := range out { - out[i] = firstRune - } } out[0] = firstRune }