mirror of
https://github.com/bettercap/bettercap
synced 2025-07-29 19:20:00 -07:00
if block ends with a return statement drop this else and outdent its block
This commit is contained in:
parent
3f8226ff67
commit
aee47df0a6
1 changed files with 1 additions and 2 deletions
|
@ -98,9 +98,8 @@ func (gps *GPS) readLine() (line string, err error) {
|
||||||
} else if n == 1 {
|
} else if n == 1 {
|
||||||
if b[0] == '\n' {
|
if b[0] == '\n' {
|
||||||
return core.Trim(line), nil
|
return core.Trim(line), nil
|
||||||
} else {
|
|
||||||
line += string(b[0])
|
|
||||||
}
|
}
|
||||||
|
line += string(b[0])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue