Redundant else-blocks can be eliminated RVV-A0009
Anti-pattern
Major
6 months agoa year old
if block ends with call to os.Exit function, so drop this else and outdent its block
1594							if code != exitCancel {
1595								util.KillCommand(cmd)
1596								os.Exit(code)
1597							} else {1598								select {
1599								case <-time.After(previewCancelWait):
1600									util.KillCommand(cmd)
if block ends with a break statement, so drop this else and outdent its block
271						restart(*nextCommand)
272						nextCommand = nil
273						break
274					} else {275						reading = reading && evt == EvtReadNew
276					}
277					snapshot, count := chunkList.Snapshot()