From 6a6ea35f4946d0f3540c2153d165c3d07ffc411c Mon Sep 17 00:00:00 2001 From: Carlo Field Date: Mon, 20 Apr 2020 15:13:20 +0200 Subject: [PATCH] read file before closing it --- internal/server/profile.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/server/profile.go b/internal/server/profile.go index 1d4d9a9..30b14ac 100644 --- a/internal/server/profile.go +++ b/internal/server/profile.go @@ -83,8 +83,8 @@ func updateBankRequest(c *gin.Context) { c.AbortWithStatus(500) return } - err = f.Close() s, p := profile.Deserialize(f) + err = f.Close() if err != nil { c.AbortWithStatus(500) return