mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-06 23:16:52 +02:00
enable staticcheck QFxxxx rules (#34064)
This commit is contained in:
1 parent
5564c39105
commit
2a59dfbd47
47 files changed
+179
-143
No files matched your search
@@ -164,11 +164,12 @@ func BatchHandler(ctx *context.Context) {
|
||||
}
|
||||
|
||||
var isUpload bool
|
||||
if br.Operation == "upload" {
|
||||
switch br.Operation {
|
||||
case "upload":
|
||||
isUpload = true
|
||||
} else if br.Operation == "download" {
|
||||
case "download":
|
||||
isUpload = false
|
||||
} else {
|
||||
default:
|
||||
log.Trace("Attempt to BATCH with invalid operation: %s", br.Operation)
|
||||
writeStatus(ctx, http.StatusBadRequest)
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user