mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
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 |