Skip to content

Commit f4da4bf

Browse files
CodeLingoBotcasualjim
authored andcommitted
Fix function comments based on best practices from Effective Go
Signed-off-by: CodeLingo Bot <bot@codelingo.io>
1 parent 4f63523 commit f4da4bf

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

middleware/untyped/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ func (d *API) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[stri
184184
return result
185185
}
186186

187-
// AuthorizersFor returns the registered authorizer
187+
// Authorizer returns the registered authorizer
188188
func (d *API) Authorizer() runtime.Authorizer {
189189
return d.authorizer
190190
}

security/authenticator.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func BasicAuth(authenticate UserPassAuthentication) runtime.Authenticator {
9494
return BasicAuthRealm(DefaultRealmName, authenticate)
9595
}
9696

97-
// BasicAuthBasicAuthRealm creates a basic auth authenticator with the provided authentication function and realm name
97+
// BasicAuthRealm creates a basic auth authenticator with the provided authentication function and realm name
9898
func BasicAuthRealm(realm string, authenticate UserPassAuthentication) runtime.Authenticator {
9999
if realm == "" {
100100
realm = DefaultRealmName
@@ -118,7 +118,7 @@ func BasicAuthCtx(authenticate UserPassAuthenticationCtx) runtime.Authenticator
118118
return BasicAuthRealmCtx(DefaultRealmName, authenticate)
119119
}
120120

121-
// BasicAuthCtx creates a basic auth authenticator with the provided authentication function and realm name with support for context.Context
121+
// BasicAuthRealmCtx creates a basic auth authenticator with the provided authentication function and realm name with support for context.Context
122122
func BasicAuthRealmCtx(realm string, authenticate UserPassAuthenticationCtx) runtime.Authenticator {
123123
if realm == "" {
124124
realm = DefaultRealmName

0 commit comments

Comments
 (0)