QuackatronHQ / Gigarepo

Self-assignment of variables SCC-SA4018
Anti-pattern
Minor
21 days ago2 years old
self-assignment of a to a
84
85func swap(a, b int) (int, int) {
86	temp := a
87	a = a88	b = temp
89	return a, b
90}