initial commits

master
Charles Iliya Krempeaux 2022-12-14 03:14:48 -08:00
parent 20664bdfc0
commit b2932e94f1
1 changed files with 6 additions and 2 deletions

View File

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