We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42dd626 commit 7dd476eCopy full SHA for 7dd476e
formatter.go
@@ -539,13 +539,12 @@ func getItemAsStr(item *any, itemFormat *string) string {
539
dividerVal, err := strconv.ParseFloat(dividerStr, 32)
540
if err == nil {
541
// 1. Convert arg to float
542
- val := (*item).(interface{})
543
var floatVal float64
544
- switch val.(type) {
+ switch (*item).(interface{}).(type) {
545
case float64:
546
- floatVal = val.(float64)
+ floatVal = (*item).(float64)
547
case int:
548
- floatVal = float64(val.(int))
+ floatVal = float64((*item).(int))
549
default:
550
floatVal = 0
551
}
0 commit comments