()
| 386 | } |
| 387 | |
| 388 | func (this *FileReader) discard() error { |
| 389 | _ = this.fp.Close() |
| 390 | this.isClosed = true |
| 391 | |
| 392 | // close open file cache |
| 393 | if this.openFileCache != nil { |
| 394 | this.openFileCache.Close(this.fp.Name()) |
| 395 | } |
| 396 | |
| 397 | // remove file |
| 398 | return fsutils.Remove(this.fp.Name()) |
| 399 | } |
no test coverage detected