From ff2fd08228dd6323ac4a1cbd2f37f8ae15733eab Mon Sep 17 00:00:00 2001 From: Gusted Date: Mon, 20 Dec 2021 05:41:31 +0100 Subject: Simplify parameter types (#18006) Remove repeated type declarations in function definitions. --- modules/base/tool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/base') diff --git a/modules/base/tool.go b/modules/base/tool.go index 775fd709cf..dff0d70420 100644 --- a/modules/base/tool.go +++ b/modules/base/tool.go @@ -149,7 +149,7 @@ func PrettyNumber(v int64) string { } // Subtract deals with subtraction of all types of number. -func Subtract(left interface{}, right interface{}) interface{} { +func Subtract(left, right interface{}) interface{} { var rleft, rright int64 var fleft, fright float64 var isInt = true -- cgit v1.2.3