Skip to content

Commit

Permalink
Make CopyEscapable consistent with Copy and return nil in case of s…
Browse files Browse the repository at this point in the history
…uccess instead of io.EOF
  • Loading branch information
Guillaume J. Charmes committed Nov 29, 2013
1 parent ad43d88 commit 77c9417
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 77c9417

Please sign in to comment.