diff options
author | Harald Hoyer <harald@redhat.com> | 2019-07-09 14:16:37 +0200 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2019-07-12 15:36:08 +0200 |
commit | d52a2d1e54cc147eea12c2e91808c015804abb8b (patch) | |
tree | 21f9d96e81de1c042bd7392351e58ce2caefb5c3 | |
parent | 6f3e7f7eccdfed03d3d617a9040d5e0b844ea637 (diff) | |
download | podman-d52a2d1e54cc147eea12c2e91808c015804abb8b.tar.gz podman-d52a2d1e54cc147eea12c2e91808c015804abb8b.tar.bz2 podman-d52a2d1e54cc147eea12c2e91808c015804abb8b.zip |
Fix the double replySendFile()
Signed-off-by: Harald Hoyer <harald@redhat.com>
-rw-r--r-- | pkg/varlinkapi/transfers.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/pkg/varlinkapi/transfers.go b/pkg/varlinkapi/transfers.go index 24a91a86f..31d26c3aa 100644 --- a/pkg/varlinkapi/transfers.go +++ b/pkg/varlinkapi/transfers.go @@ -26,11 +26,6 @@ func (i *LibpodAPI) SendFile(call iopodman.VarlinkCall, ftype string, length int defer outputFile.Close() if err = call.ReplySendFile(outputFile.Name()); err != nil { - return call.ReplyErrorOccurred(err.Error()) - } - - // FIXME return parameter - if err = call.ReplySendFile("FIXME_file_handle"); err != nil { // If an error occurs while sending the reply, return the error return err } |