Add io.Closer guidelines (#29387)

Co-authored-by: Yarden Shoham <git@yardenshoham.com>
This commit is contained in:
KN4CK3RandYarden Shoham authored and GitHub committed 2024-02-25 13:05:23 +00:00
1 parent 0676bf52f9
commit ad0a34b492
7 files changed
+16 -9

No files matched your search

@@ -149,6 +149,7 @@ func (b *FileBackedBuffer) Close() error {
if b.file != nil {
err := b.file.Close()
os.Remove(b.file.Name())
b.file = nil
return err
}
return nil