From 17aa7f8b20dba5d1c612128623b20df26a135126 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 --- jsonmessage/jsonmessage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsonmessage/jsonmessage.go b/jsonmessage/jsonmessage.go index f503b10..e20b242 100644 --- a/jsonmessage/jsonmessage.go +++ b/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