Skip to content

Commit

Permalink
Fixed labstack#458
Browse files Browse the repository at this point in the history
Signed-off-by: Vishal Rana <[email protected]>
  • Loading branch information
vishr committed Apr 8, 2016
1 parent c1177e5 commit 7905fbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,11 @@ func save(c echo.Context) error {
defer src.Close()

// Destination
file, err := os.Create(file.Filename)
dst, err := os.Create(avatar.Filename)
if err != nil {
return err
}
defer file.Close()
defer dst.Close()

// Copy
if _, err = io.Copy(dst, src); err != nil {
Expand Down

0 comments on commit 7905fbd

Please sign in to comment.