From 3d4b19d82286e1d53b6dac05f197ade5cf1cb8af Mon Sep 17 00:00:00 2001 From: Brandon Lee Camilleri Date: Mon, 29 Nov 2021 20:01:04 +0100 Subject: [PATCH] unneeded: len(str) --- sorter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sorter.go b/sorter.go index 7389c8a..7ea8e4a 100644 --- a/sorter.go +++ b/sorter.go @@ -245,7 +245,7 @@ func m(str string) float32 { multiplier := 1.0 - switch str[len(str)-1 : len(str)] { // Check the last character. + switch str[len(str)-1:] { // Check the last character. case `T`: multiplier = 1000000000000.0 case `B`: