From b408033e43fc998324de1c02420f5c208d9d56e4 Mon Sep 17 00:00:00 2001 From: "Anders B. Hansen" Date: Wed, 18 Jul 2018 19:06:27 +0200 Subject: [PATCH] Remove redundant token update Signed-off-by: Anders B. Hansen --- modules/lfs/server.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/modules/lfs/server.go b/modules/lfs/server.go index 17b7a3212..53fa1dcba 100644 --- a/modules/lfs/server.go +++ b/modules/lfs/server.go @@ -16,7 +16,6 @@ import ( "code.gitea.io/gitea/modules/context" "code.gitea.io/gitea/modules/log" "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" "github.com/dgrijalva/jwt-go" "gopkg.in/macaron.v1" @@ -584,12 +583,6 @@ func parseToken(authorization string) (*models.User, *models.Repository, string, return nil, nil, "basic", err } - token.UpdatedUnix = util.TimeStampNow() - err = models.UpdateAccessToken(token) - if err != nil { - return nil, nil, "basic", err - } - } else { return nil, nil, "basic", err }