ankitpokhrel / jira-cli

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 (move short variable declaration to its own line if necessary)
446			out.WriteString(line[:x])
447			out.WriteRune(newLine)
448			break
449		} else {450			// Write everything as is.
451			out.WriteString(lines[i])
452		}