Defer closing of files (#17213)
Signed-off-by: CodeLingo Bot <bot@codelingo.io>
This commit is contained in:
committed by
Carl Bergquist
parent
9cdf0f4f9c
commit
3ff3e0f2ac
@@ -316,6 +316,7 @@ func GetHomeDashboard(c *m.ReqContext) Response {
|
||||
if err != nil {
|
||||
return Error(500, "Failed to load home dashboard", err)
|
||||
}
|
||||
defer file.Close()
|
||||
|
||||
dash := dtos.DashboardFullWithMeta{}
|
||||
dash.Meta.IsHome = true
|
||||
|
||||
Reference in New Issue
Block a user