QuackatronHQ / Gigarepo

Simplify error construction with fmt.Errorf SCC-S1028
Anti-pattern
Major
1 occurrence in this check
should use fmt.Errorf(...) instead of errors.New(fmt.Sprintf(...))
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
58	switch a.(type) {