mirror of
https://github.com/ipfs/kubo.git
synced 2025-07-02 12:20:03 +08:00
commands: Removed unused output stream field from Response
This commit is contained in:

committed by
Juan Batiz-Benet

parent
19e5fbae70
commit
94683bb6b2
@ -4,7 +4,6 @@ import (
|
||||
"encoding/json"
|
||||
"encoding/xml"
|
||||
"fmt"
|
||||
"io"
|
||||
"strings"
|
||||
)
|
||||
|
||||
@ -69,7 +68,6 @@ type response struct {
|
||||
req Request
|
||||
err *Error
|
||||
value interface{}
|
||||
out io.Writer
|
||||
}
|
||||
|
||||
func (r *response) Request() Request {
|
||||
@ -84,10 +82,6 @@ func (r *response) SetValue(v interface{}) {
|
||||
r.value = v
|
||||
}
|
||||
|
||||
func (r *response) Stream() io.Writer {
|
||||
return r.out
|
||||
}
|
||||
|
||||
func (r *response) Error() *Error {
|
||||
return r.err
|
||||
}
|
||||
|
Reference in New Issue
Block a user