Bump golag-ci lint version to 1.40.1

Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
This commit is contained in:
m.nabokikh
2021-05-27 17:11:12 +04:00
parent 95941506f5
commit 4b54433ec2
7 changed files with 17 additions and 17 deletions

View File

@@ -51,7 +51,7 @@ func (d *Database) DeleteOfflineSessions(userID, connID string) error {
return nil
}
// UpdatePassword changes an offline session by user id and connector id using an updater function.
// UpdateOfflineSessions changes an offline session by user id and connector id using an updater function.
func (d *Database) UpdateOfflineSessions(userID string, connID string, updater func(s storage.OfflineSessions) (storage.OfflineSessions, error)) error {
id := offlineSessionID(userID, connID, d.hasher)
@@ -86,7 +86,7 @@ func (d *Database) UpdateOfflineSessions(userID string, connID string, updater f
}
if err = tx.Commit(); err != nil {
return rollback(tx, "update password commit: %w", err)
return rollback(tx, "update offline session commit: %w", err)
}
return nil

View File

@@ -29,8 +29,7 @@ func New(logger log.Logger) storage.Storage {
// Config is an implementation of a storage configuration.
//
// TODO(ericchiang): Actually define a storage config interface and have registration.
type Config struct {
// The in memory implementation has no config.
type Config struct { // The in memory implementation has no config.
}
// Open always returns a new in memory storage.

View File

@@ -177,7 +177,7 @@ type Claims struct {
Groups []string
}
// Data needed for PKCE (RFC 7636)
// PKCE is a container for the data needed to perform Proof Key for Code Exchange (RFC 7636) auth flow
type PKCE struct {
CodeChallenge string
CodeChallengeMethod string