mirror of https://github.com/vishvananda/netlink
protinfo: return value of evaluated expression
This commit is contained in:
parent
7a823e360e
commit
05458f3920
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue