if block ends with a return statement drop this else and outdent its block

This commit is contained in:
Kent Gruber 2018-05-01 23:21:46 -04:00
parent 3f8226ff67
commit aee47df0a6

View file

@ -98,9 +98,8 @@ func (gps *GPS) readLine() (line string, err error) {
} else if n == 1 {
if b[0] == '\n' {
return core.Trim(line), nil
} else {
line += string(b[0])
}
line += string(b[0])
}
}
}