forked from TrueCloudLab/frostfs-sdk-go
[#131] client: Remove redundant else
branch
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
b557aa0e2d
commit
d889ab3022
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue