File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -267,10 +267,10 @@ func main() {
267267 logVerbose ("batch cmd: %s %v" , subCmd , substArgs )
268268 switch subCmd {
269269 case "gitea-fmt" :
270- cmdErrors = append (cmdErrors , passThroughCmd ("gofmt" , substArgs ))
271270 if containsString (subArgs , "-w" ) {
272271 cmdErrors = append (cmdErrors , giteaFormatGoImports (files ))
273272 }
273+ cmdErrors = append (cmdErrors , passThroughCmd ("gofmt" , substArgs ))
274274 case "misspell" :
275275 cmdErrors = append (cmdErrors , passThroughCmd ("misspell" , substArgs ))
276276 default :
Original file line number Diff line number Diff line change @@ -11,12 +11,12 @@ import (
1111 "code.gitea.io/gitea/models/login"
1212 user_model "code.gitea.io/gitea/models/user"
1313 "code.gitea.io/gitea/modules/log"
14+ "code.gitea.io/gitea/services/auth/source/oauth2"
15+ "code.gitea.io/gitea/services/auth/source/smtp"
1416
1517 _ "code.gitea.io/gitea/services/auth/source/db" // register the sources (and below)
1618 _ "code.gitea.io/gitea/services/auth/source/ldap" // register the ldap source
17- "code.gitea.io/gitea/services/auth/source/oauth2"
18- _ "code.gitea.io/gitea/services/auth/source/pam" // register the pam source
19- "code.gitea.io/gitea/services/auth/source/smtp"
19+ _ "code.gitea.io/gitea/services/auth/source/pam" // register the pam source
2020 _ "code.gitea.io/gitea/services/auth/source/sspi" // register the sspi source
2121)
2222
You can’t perform that action at this time.
0 commit comments