Fix shadowing of variable. #116

This commit is contained in:
Andrey Smirnov
2014-10-23 00:57:27 +04:00
parent 6a9db17460
commit 7efd0de67c
+1 -1
View File
@@ -175,7 +175,7 @@ func apiFilesDeleteFile(c *gin.Context) {
err := os.Remove(filepath.Join(context.UploadPath(), c.Params.ByName("dir"), c.Params.ByName("name")))
if err != nil {
if err, ok := err.(*os.PathError); !ok || !os.IsNotExist(err.Err) {
if err1, ok := err.(*os.PathError); !ok || !os.IsNotExist(err1.Err) {
c.Fail(500, err)
return
}