Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAsh McKenzie <amckenzie@gitlab.com>2019-02-11 09:36:02 +0300
committerAsh McKenzie <amckenzie@gitlab.com>2019-02-11 09:36:14 +0300
commit6dab9ce34308ac735672c48dd199df7f57f1cce7 (patch)
tree81016d9519078d72d595580da78538957902197b /lib/gitlab/lfs_token.rb
parentc4f1e8ed1014d2dec07ad12bed398dfa5d2bc6e1 (diff)
Remove ability to specify expire_time
LfsToken#token does not need the ability to specify expire_time
Diffstat (limited to 'lib/gitlab/lfs_token.rb')
-rw-r--r--lib/gitlab/lfs_token.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/lfs_token.rb b/lib/gitlab/lfs_token.rb
index 1193277bee5..5eefc3c0d7a 100644
--- a/lib/gitlab/lfs_token.rb
+++ b/lib/gitlab/lfs_token.rb
@@ -30,8 +30,8 @@ module Gitlab
end
end
- def token(expire_time: DEFAULT_EXPIRE_TIME)
- HMACToken.new(actor).token(expire_time)
+ def token
+ HMACToken.new(actor).token(DEFAULT_EXPIRE_TIME)
end
def token_valid?(token_to_check)