Merge pull request #18540 from thaJeztah/remove-redundant-check

Remove redundant check
This commit is contained in:
David Calavera 2015-12-09 09:48:11 -08:00
commit 61b832dc5c

View file

@ -183,7 +183,7 @@ func DisplayJSONMessagesStream(in io.Reader, out io.Writer, terminalFd uintptr,
} else {
diff = len(ids) - line
}
if jm.ID != "" && isTerminal {
if isTerminal {
// NOTE: this appears to be necessary even if
// diff == 0.
// <ESC>[{diff}A = move cursor up diff rows