Remove unnecessary comparison with bool

This commit is contained in:
deepsource-autofix[bot] 2021-02-01 08:57:11 +00:00 committed by GitHub
parent 91386cc725
commit 6591de4b63
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35144,7 +35144,7 @@ func ManufLookup(mac string) string {
macHex := strings.Replace(mac, ":", "", -1) macHex := strings.Replace(mac, ":", "", -1)
macInt := new(big.Int) macInt := new(big.Int)
if _, ok := macInt.SetString(macHex, 16); ok == false { if _, ok := macInt.SetString(macHex, 16); !ok {
return "" return ""
} }