Merge pull request #2 from HarshCasper/deepsource-fix-a44a7647

Remove unnecessary comparison with bool
This commit is contained in:
Harsh Bardhan Mishra 2021-02-01 14:30:12 +05:30 committed by GitHub
commit df806e60da
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)
macInt := new(big.Int)
if _, ok := macInt.SetString(macHex, 16); ok == false {
if _, ok := macInt.SetString(macHex, 16); !ok {
return ""
}