chore: simplify

This commit is contained in:
andig 2022-08-30 18:46:35 +02:00
parent a65d688bf9
commit 85ad361ff3

View file

@ -11,10 +11,8 @@ import (
// ReadingName formats MBMD reading names
func ReadingName(val string) string {
if len(val) > 0 {
val = strings.ToUpper(val[:1]) + val[1:]
}
return val
//lint:ignore SA1019 as Title is safe on ascii
return strings.Title(val)
}
func RTUFloat64ToFloat64(b []byte) float64 {