mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-05 08:15:34 +02:00
Fix code formating (#17830)
* fix formatter, format imports first, then go fmt
This commit is contained in:
1 parent
2e8fc5b034
commit
04c55e97a2
2 files changed
+4
-4
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user