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:
Carl Bergquist
2019-04-16 10:27:07 +02:00
committed by GitHub
parent 406ef962fc
commit 490515aec6
7 changed files with 30 additions and 25 deletions
+1 -1
View File
@@ -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))