diff --git a/protinfo.go b/protinfo.go index f39ab8f..ead3f2f 100644 --- a/protinfo.go +++ b/protinfo.go @@ -46,8 +46,5 @@ func boolToByte(x bool) []byte { } func byteToBool(x byte) bool { - if uint8(x) != 0 { - return true - } - return false + return uint8(x) != 0 }