Skip to content

Commit a5f28a4

Browse files
ethantkoeniglunny
authored andcommitted
gofmt (#1662)
1 parent 1773e88 commit a5f28a4

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

models/error_oauth2.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import "fmt"
99
// ErrOpenIDConnectInitialize represents a "OpenIDConnectInitialize" kind of error.
1010
type ErrOpenIDConnectInitialize struct {
1111
OpenIDConnectAutoDiscoveryURL string
12-
ProviderName string
13-
Cause error
12+
ProviderName string
13+
Cause error
1414
}
1515

1616
// IsErrOpenIDConnectInitialize checks if an error is a ExternalLoginUserAlreadyExist.

models/login_source.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,4 +685,4 @@ func UserSignIn(username, password string) (*User, error) {
685685
}
686686

687687
return nil, ErrUserNotExist{user.ID, user.Name, 0}
688-
}
688+
}

models/oauth2.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@ package models
66

77
import (
88
"sort"
9+
910
"code.gitea.io/gitea/modules/auth/oauth2"
1011
)
1112

1213
// OAuth2Provider describes the display values of a single OAuth2 provider
1314
type OAuth2Provider struct {
14-
Name string
15-
DisplayName string
16-
Image string
17-
CustomURLMapping *oauth2.CustomURLMapping
15+
Name string
16+
DisplayName string
17+
Image string
18+
CustomURLMapping *oauth2.CustomURLMapping
1819
}
1920

2021
// OAuth2Providers contains the map of registered OAuth2 providers in Gitea (based on goth)
@@ -47,7 +48,7 @@ var OAuth2Providers = map[string]OAuth2Provider{
4748
// OAuth2DefaultCustomURLMappings contains the map of default URL's for OAuth2 providers that are allowed to have custom urls
4849
// key is used to map the OAuth2Provider
4950
// value is the mapping as defined for the OAuth2Provider
50-
var OAuth2DefaultCustomURLMappings = map[string]*oauth2.CustomURLMapping {
51+
var OAuth2DefaultCustomURLMappings = map[string]*oauth2.CustomURLMapping{
5152
"github": OAuth2Providers["github"].CustomURLMapping,
5253
"gitlab": OAuth2Providers["gitlab"].CustomURLMapping,
5354
}
@@ -119,4 +120,3 @@ func wrapOpenIDConnectInitializeError(err error, providerName string, oAuth2Conf
119120
}
120121
return err
121122
}
122-

routers/api/v1/misc/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ func Version(ctx *context.APIContext) {
2323
//
2424
// Responses:
2525
// 200: ServerVersion
26-
26+
2727
ctx.JSON(200, &gitea.ServerVersion{Version: setting.AppVer})
2828
}

0 commit comments

Comments
 (0)