removed status code check in response decoder
This commit is contained in:
parent
93618bc473
commit
6b7598a650
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue