mirror of
https://github.com/grafana/grafana.git
synced 2026-09-05 04:40:13 -05:00
build: partially replace gometalinter with golangci-lint (#16610)
we still use gometalinter for goconst since it doesn't report errors for duplicated in test files
This commit is contained in:
@@ -149,7 +149,7 @@ func (s *UserAuthTokenService) TryRotateToken(token *models.UserToken, clientIP,
|
||||
|
||||
now := getTime()
|
||||
|
||||
needsRotation := false
|
||||
var needsRotation bool
|
||||
rotatedAt := time.Unix(model.RotatedAt, 0)
|
||||
if model.AuthTokenSeen {
|
||||
needsRotation = rotatedAt.Before(now.Add(-time.Duration(s.Cfg.TokenRotationIntervalMinutes) * time.Minute))
|
||||
|
||||
Reference in New Issue
Block a user