Skip to content

Commit 7dd476e

Browse files
committed
probably all last linter errs werefixed
1 parent 42dd626 commit 7dd476e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

formatter.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -539,13 +539,12 @@ func getItemAsStr(item *any, itemFormat *string) string {
539539
dividerVal, err := strconv.ParseFloat(dividerStr, 32)
540540
if err == nil {
541541
// 1. Convert arg to float
542-
val := (*item).(interface{})
543542
var floatVal float64
544-
switch val.(type) {
543+
switch (*item).(interface{}).(type) {
545544
case float64:
546-
floatVal = val.(float64)
545+
floatVal = (*item).(float64)
547546
case int:
548-
floatVal = float64(val.(int))
547+
floatVal = float64((*item).(int))
549548
default:
550549
floatVal = 0
551550
}

0 commit comments

Comments
 (0)