[#131] client: Remove redundant else branch

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2022-02-17 18:41:49 +03:00 committed by LeL
parent b557aa0e2d
commit d889ab3022

View file

@ -124,9 +124,7 @@ func handleSplitInfo(ctx *contextCall, i *v2object.SplitInfo) {
// ReadHeader reads header of the object. Result means success.
// Failure reason can be received via Close.
func (x *ObjectReader) ReadHeader(dst *object.Object) bool {
if !x.ctxCall.writeRequest() {
return false
} else if !x.ctxCall.readResponse() {
if !x.ctxCall.writeRequest() || !x.ctxCall.readResponse() {
return false
}