QuackatronHQ / Gigarepo

Omit comparison with boolean constant SCC-S1002
Anti-pattern
Minor
a month ago2 years old
should omit comparison to bool constant, can be simplified to !typeEql
51
52func equalCompare(a, b any) (bool, error) {
53	typeEql := reflect.TypeOf(a) == reflect.TypeOf(b)
54	if typeEql == false {55		return false, errors.New(fmt.Sprintf("type equality: %v", typeEql))
56	}
57