diff --git a/common/buf/copy.go b/common/buf/copy.go index 7d19efdda..7d487c174 100644 --- a/common/buf/copy.go +++ b/common/buf/copy.go @@ -92,7 +92,9 @@ func copyInternal(reader Reader, writer Writer, handler *copyHandler) error { buffer.Release() return werr } - } else if err != nil { + } + + if err != nil { return err } }