diff options
author | mscherer <mscherer@users.noreply.github.com> | 2021-11-27 12:59:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-27 19:59:51 +0800 |
commit | 04c55e97a29dc9a60eafeccfb20d9f408c83ee46 (patch) | |
tree | dd4f9c9de13ff97750fb643e6c83cb1db844fb02 /build/code-batch-process.go | |
parent | 2e8fc5b034d7a2ceb22f264193a157230b48365a (diff) | |
download | gitea-04c55e97a29dc9a60eafeccfb20d9f408c83ee46.tar.gz gitea-04c55e97a29dc9a60eafeccfb20d9f408c83ee46.zip |
Fix code formating (#17830)
* fix formatter, format imports first, then go fmt
Diffstat (limited to 'build/code-batch-process.go')
-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: |