Remove redundant check
jm.ID is already checked in the outer "if", so theres no reason to check it again here. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
6e9a3453f7
commit
17aa7f8b20
1 changed files with 1 additions and 1 deletions
|
@ -183,7 +183,7 @@ func DisplayJSONMessagesStream(in io.Reader, out io.Writer, terminalFd uintptr,
|
||||||
} else {
|
} else {
|
||||||
diff = len(ids) - line
|
diff = len(ids) - line
|
||||||
}
|
}
|
||||||
if jm.ID != "" && isTerminal {
|
if isTerminal {
|
||||||
// NOTE: this appears to be necessary even if
|
// NOTE: this appears to be necessary even if
|
||||||
// diff == 0.
|
// diff == 0.
|
||||||
// <ESC>[{diff}A = move cursor up diff rows
|
// <ESC>[{diff}A = move cursor up diff rows
|
||||||
|
|
Loading…
Reference in a new issue