From 7a6f5d9b3186de2116686d5e2c40eff673dae6ec Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Wed, 9 Dec 2015 17:38:06 +0100 Subject: [PATCH] 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 --- pkg/jsonmessage/jsonmessage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/jsonmessage/jsonmessage.go b/pkg/jsonmessage/jsonmessage.go index f503b109f2..e20b2420c2 100644 --- a/pkg/jsonmessage/jsonmessage.go +++ b/pkg/jsonmessage/jsonmessage.go @@ -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. // [{diff}A = move cursor up diff rows