fix some typos
This commit is contained in:
parent
4d47ac1861
commit
1042b18716
1 changed files with 7 additions and 7 deletions
|
@ -36,7 +36,7 @@ var loginSet = wire.NewSet(
|
||||||
)
|
)
|
||||||
|
|
||||||
// provideLogin is a Wire provider function that returns an
|
// provideLogin is a Wire provider function that returns an
|
||||||
// autenticator based on the environment configuration.
|
// authenticator based on the environment configuration.
|
||||||
func provideLogin(config config.Config) login.Middleware {
|
func provideLogin(config config.Config) login.Middleware {
|
||||||
switch {
|
switch {
|
||||||
case config.Bitbucket.ClientID != "":
|
case config.Bitbucket.ClientID != "":
|
||||||
|
@ -57,7 +57,7 @@ func provideLogin(config config.Config) login.Middleware {
|
||||||
}
|
}
|
||||||
|
|
||||||
// provideBitbucketLogin is a Wire provider function that
|
// provideBitbucketLogin is a Wire provider function that
|
||||||
// returns a Bitbucket Cloud autenticator based on the
|
// returns a Bitbucket Cloud authenticator based on the
|
||||||
// environment configuration.
|
// environment configuration.
|
||||||
func provideBitbucketLogin(config config.Config) login.Middleware {
|
func provideBitbucketLogin(config config.Config) login.Middleware {
|
||||||
if config.Bitbucket.ClientID == "" {
|
if config.Bitbucket.ClientID == "" {
|
||||||
|
@ -71,7 +71,7 @@ func provideBitbucketLogin(config config.Config) login.Middleware {
|
||||||
}
|
}
|
||||||
|
|
||||||
// provideGithubLogin is a Wire provider function that returns
|
// provideGithubLogin is a Wire provider function that returns
|
||||||
// a GitHub autenticator based on the environment configuration.
|
// a GitHub authenticator based on the environment configuration.
|
||||||
func provideGithubLogin(config config.Config) login.Middleware {
|
func provideGithubLogin(config config.Config) login.Middleware {
|
||||||
if config.Github.ClientID == "" {
|
if config.Github.ClientID == "" {
|
||||||
return nil
|
return nil
|
||||||
|
@ -87,7 +87,7 @@ func provideGithubLogin(config config.Config) login.Middleware {
|
||||||
}
|
}
|
||||||
|
|
||||||
// provideGiteaLogin is a Wire provider function that returns
|
// provideGiteaLogin is a Wire provider function that returns
|
||||||
// a Gitea autenticator based on the environment configuration.
|
// a Gitea authenticator based on the environment configuration.
|
||||||
func provideGiteaLogin(config config.Config) login.Middleware {
|
func provideGiteaLogin(config config.Config) login.Middleware {
|
||||||
if config.Gitea.Server == "" {
|
if config.Gitea.Server == "" {
|
||||||
return nil
|
return nil
|
||||||
|
@ -112,7 +112,7 @@ func provideGiteaLogin(config config.Config) login.Middleware {
|
||||||
}
|
}
|
||||||
|
|
||||||
// provideGitlabLogin is a Wire provider function that returns
|
// provideGitlabLogin is a Wire provider function that returns
|
||||||
// a GitLab autenticator based on the environment configuration.
|
// a GitLab authenticator based on the environment configuration.
|
||||||
func provideGitlabLogin(config config.Config) login.Middleware {
|
func provideGitlabLogin(config config.Config) login.Middleware {
|
||||||
if config.GitLab.ClientID == "" {
|
if config.GitLab.ClientID == "" {
|
||||||
return nil
|
return nil
|
||||||
|
@ -127,7 +127,7 @@ func provideGitlabLogin(config config.Config) login.Middleware {
|
||||||
}
|
}
|
||||||
|
|
||||||
// provideGogsLogin is a Wire provider function that returns
|
// provideGogsLogin is a Wire provider function that returns
|
||||||
// a Gogs autenticator based on the environment configuration.
|
// a Gogs authenticator based on the environment configuration.
|
||||||
func provideGogsLogin(config config.Config) login.Middleware {
|
func provideGogsLogin(config config.Config) login.Middleware {
|
||||||
if config.Gogs.Server == "" {
|
if config.Gogs.Server == "" {
|
||||||
return nil
|
return nil
|
||||||
|
@ -141,7 +141,7 @@ func provideGogsLogin(config config.Config) login.Middleware {
|
||||||
}
|
}
|
||||||
|
|
||||||
// provideStashLogin is a Wire provider function that returns
|
// provideStashLogin is a Wire provider function that returns
|
||||||
// a Stash autenticator based on the environment configuration.
|
// a Stash authenticator based on the environment configuration.
|
||||||
func provideStashLogin(config config.Config) login.Middleware {
|
func provideStashLogin(config config.Config) login.Middleware {
|
||||||
if config.Stash.ConsumerKey == "" {
|
if config.Stash.ConsumerKey == "" {
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in a new issue