Skip to content

Commit 0220709

Browse files
committed
Removed unused variable
1 parent c42fcd7 commit 0220709

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Diff for: conn.go

-4
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,6 @@ func uploadHandler(c *gin.Context) {
124124
return
125125
}
126126

127-
var filePaths []string
128-
filePaths = append(filePaths, filePath)
129-
130127
tmpdir, err := os.MkdirTemp("", "extrafiles")
131128
if err != nil {
132129
c.String(http.StatusBadRequest, err.Error())
@@ -139,7 +136,6 @@ func uploadHandler(c *gin.Context) {
139136
c.String(http.StatusBadRequest, err.Error())
140137
return
141138
}
142-
filePaths = append(filePaths, path)
143139
log.Printf("Saving %s on %s", extraFile.Filename, path)
144140

145141
err = os.MkdirAll(filepath.Dir(path), 0744)

0 commit comments

Comments
 (0)