initial commits
parent
20664bdfc0
commit
b2932e94f1
|
@ -80,7 +80,7 @@ func (receiver *Content) Close() error {
|
|||
return errNilReceiver
|
||||
}
|
||||
|
||||
if receiver.closed {
|
||||
if receiver.Closed() {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
@ -94,6 +94,10 @@ func (receiver *Content) Closed() bool {
|
|||
return true
|
||||
}
|
||||
|
||||
if EmptyContent() == *receiver {
|
||||
return true
|
||||
}
|
||||
|
||||
return receiver.closed
|
||||
}
|
||||
// Read makes strfs.Content fit the io.Reader interface.
|
||||
|
@ -135,7 +139,7 @@ func (receiver *Content) Read(p []byte) (int, error) {
|
|||
return 0, errInternalError
|
||||
}
|
||||
|
||||
if receiver.closed {
|
||||
if receiver.Closed() {
|
||||
return 0, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue