go-graphite / carbonapi

Redundant else-blocks can be eliminated RVV-A0009
Anti-pattern
Major
6 months ago2 years old
if block ends with a break statement, so drop this else and outdent its block
 46				if firstSeen >= 0 {
 47					secondSeen = i
 48					break
 49				} else { 50					firstSeen = i
 51				}
 52			}
if block ends with a break statement, so drop this else and outdent its block
220			if math.IsNaN(v) {
221				rv = math.NaN()
222				break
223			} else {224				total++
225				rv *= v
226			}