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