cmd/ursrv: Lint fixes

This commit is contained in:
Jakob Borg
2019-05-18 11:59:32 +02:00
parent 78d6eee74a
commit eb8df7f632
4 changed files with 13 additions and 17 deletions

View File

@@ -21,11 +21,14 @@ const (
)
func number(ntype NumberType, v float64) string {
if ntype == NumberDuration {
switch ntype {
case NumberMetric:
return metric(v)
case NumberDuration:
return duration(v)
} else if ntype == NumberBinary {
case NumberBinary:
return binary(v)
} else {
default:
return metric(v)
}
}