Skip to content

Commit

Permalink
chore: simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Sep 1, 2022
1 parent a65d688 commit 85ad361
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions util/modbus/functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 85ad361

Please sign in to comment.