mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 19:06:18 +01:00 
			
		
		
		
	Add io.Closer guidelines (#29387)
				
					
				
			Co-authored-by: Yarden Shoham <git@yardenshoham.com>
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user