diff --git a/decor/counters.go b/decor/counters.go index d48e6e0..41a1975 100644 --- a/decor/counters.go +++ b/decor/counters.go @@ -27,8 +27,6 @@ unitKiB unitKB ) - -type counterUnit uint type CounterKiB int64 diff --git a/decor/decorators.go b/decor/decorators.go index 3bdcf3e..4fa2d0e 100644 --- a/decor/decorators.go +++ b/decor/decorators.go @@ -145,7 +145,7 @@ return counters(pairFormat, unitKB, width, conf) } -func counters(pairFormat string, unit counterUnit, width, conf int) DecoratorFunc { +func counters(pairFormat string, unit, width, conf int) DecoratorFunc { format := "%%" if (conf & DidentRight) != 0 { format += "-"