removed status code check in response decoder
This commit is contained in:
parent
93618bc473
commit
6b7598a650
|
@ -3,7 +3,6 @@ package ipp
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
"errors"
|
|
||||||
"io"
|
"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
|
return resp, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue