From 04d46060bc1c40bb4aef4ac5c01b31c8954bcb26 Mon Sep 17 00:00:00 2001 From: "Guillaume J. Charmes" Date: Thu, 28 Nov 2013 16:57:51 -0800 Subject: [PATCH] Make CopyEscapable consistent with Copy and return `nil` in case of success instead of io.EOF Upstream-commit: 77c94175bdc387e7f43876f7097b970f67116054 Component: engine --- components/engine/utils/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/engine/utils/utils.go b/components/engine/utils/utils.go index cfdc73bb2e..f62aa12ff5 100644 --- a/components/engine/utils/utils.go +++ b/components/engine/utils/utils.go @@ -543,7 +543,7 @@ func CopyEscapable(dst io.Writer, src io.ReadCloser) (written int64, err error) if err := src.Close(); err != nil { return 0, err } - return 0, io.EOF + return 0, nil } } // ---- End of docker