removed status code check in response decoder

This commit is contained in:
Fabian 2020-03-30 12:25:03 +02:00 committed by GitHub
parent 93618bc473
commit 6b7598a650
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 5 deletions

View File

@ -3,7 +3,6 @@ package ipp
import (
"bytes"
"encoding/binary"
"errors"
"io"
)
@ -309,10 +308,6 @@ func (d *ResponseDecoder) Decode(data io.Writer) (*Response, error) {
}
}
if resp.StatusCode != 0 {
return resp, errors.New(resp.OperationAttributes["status-message"][0].Value.(string))
}
return resp, nil
}