d8f2b47432
As pointed out by govet, > pkg/jsonmessage/jsonmessage_test.go:231:94: nilness: nil dereference in dynamic method call (govet) > if err := DisplayJSONMessagesStream(reader, data, inFd, false, nil); err == nil && err.Error()[:17] != "invalid character" { > ^ The nil deref never happened as err was always non-nil, and so the check for error message text was not performed. Fix this, and while at it, refactor the code a bit. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com> |
||
---|---|---|
.. | ||
jsonmessage.go | ||
jsonmessage_test.go |