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

Remove redundant check
Upstream-commit: 61b832dc5cb72401b4e0358b8b15854404adcd89
Component: engine
This commit is contained in:
David Calavera
2015-12-09 09:48:11 -08:00
@@ -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