do not log EOF

This commit is contained in:
ston1th 2022-04-02 23:06:00 +02:00
commit 2039086696

View file

@ -119,7 +119,7 @@ func (f *File) readToCache(p []byte) (n int, err error) {
return n, err
}
}
if err != nil {
if err != nil && err != io.EOF {
log.Error(err, "error reading source file")
return
}