Made more idiomatic.

This commit is contained in:
Alan Noble 2019-03-03 23:22:42 +00:00
parent 1c9dde3798
commit 313944de90
1 changed files with 2 additions and 3 deletions

View File

@ -267,9 +267,8 @@ func run(cfg revid.Config) {
readPin := func(pin *netsender.Pin) error {
switch {
case pin.Name == "X23":
if rv == nil {
pin.Value = -1
} else {
if rv != nil {
pin.Value = rv.Bitrate()
}
case pin.Name[0] == 'X':