Browse code

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>

Sebastiaan van Stijn authored on 2015/12/10 01:38:06
Showing 1 changed files
... ...
@@ -183,7 +183,7 @@ func DisplayJSONMessagesStream(in io.Reader, out io.Writer, terminalFd uintptr,
183 183
 			} else {
184 184
 				diff = len(ids) - line
185 185
 			}
186
-			if jm.ID != "" && isTerminal {
186
+			if isTerminal {
187 187
 				// NOTE: this appears to be necessary even if
188 188
 				// diff == 0.
189 189
 				// <ESC>[{diff}A = move cursor up diff rows