Skip to content

Commit

Permalink
read file before closing it
Browse files Browse the repository at this point in the history
  • Loading branch information
cfi2017 committed Apr 20, 2020
1 parent d8d4c3b commit 6a6ea35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/server/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6a6ea35

Please sign in to comment.