diff options
Diffstat (limited to 'routers/api/v1/repo/release_attachment.go')
-rw-r--r-- | routers/api/v1/repo/release_attachment.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/repo/release_attachment.go b/routers/api/v1/repo/release_attachment.go index fe82915a94..b1bc48d30f 100644 --- a/routers/api/v1/repo/release_attachment.go +++ b/routers/api/v1/repo/release_attachment.go @@ -178,7 +178,7 @@ func CreateReleaseAttachment(ctx *context.APIContext) { } defer file.Close() - var filename = header.Filename + filename := header.Filename if query := ctx.FormString("name"); query != "" { filename = query } |