From 6ce6fd3aa82f4258150081cbc4f2d86aa057c085 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Sun, 20 Oct 2024 21:39:04 +0800 Subject: [PATCH] modify parameter name --- pkg/utils/converter.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/utils/converter.go b/pkg/utils/converter.go index 2ddc3ef5..d856dcac 100644 --- a/pkg/utils/converter.go +++ b/pkg/utils/converter.go @@ -101,8 +101,8 @@ func StringToFloat64(str string) (float64, error) { } // FormatAmount returns a textual representation of amount -func FormatAmount(amount int64) string { - displayAmount := Int64ToString(amount) +func FormatAmount(value int64) string { + displayAmount := Int64ToString(value) negative := displayAmount[0] == '-' if negative {