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 ( 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
} }