mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-03 15:06:36 +08:00
代码质量优化
This commit is contained in:
@@ -82,7 +82,7 @@ func ServeFileByID(c *gin.Context) {
|
||||
}
|
||||
|
||||
// Stream from CDN/S3
|
||||
defer obj.Body.Close()
|
||||
defer func() { _ = obj.Body.Close() }()
|
||||
|
||||
// Respond with the file content
|
||||
c.DataFromReader(http.StatusOK, obj.ContentLength, obj.ContentType, obj.Body, nil)
|
||||
|
||||
Reference in New Issue
Block a user