diff options
Diffstat (limited to 'build')
-rw-r--r-- | build/code-batch-process.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build/code-batch-process.go b/build/code-batch-process.go index 4759baf906..fdc5d99b97 100644 --- a/build/code-batch-process.go +++ b/build/code-batch-process.go @@ -267,10 +267,10 @@ func main() { logVerbose("batch cmd: %s %v", subCmd, substArgs) switch subCmd { case "gitea-fmt": - cmdErrors = append(cmdErrors, passThroughCmd("gofmt", substArgs)) if containsString(subArgs, "-w") { cmdErrors = append(cmdErrors, giteaFormatGoImports(files)) } + cmdErrors = append(cmdErrors, passThroughCmd("gofmt", substArgs)) case "misspell": cmdErrors = append(cmdErrors, passThroughCmd("misspell", substArgs)) default: |