diff options
author | Ash McKenzie <amckenzie@gitlab.com> | 2019-02-11 09:36:02 +0300 |
---|---|---|
committer | Ash McKenzie <amckenzie@gitlab.com> | 2019-02-11 09:36:14 +0300 |
commit | 6dab9ce34308ac735672c48dd199df7f57f1cce7 (patch) | |
tree | 81016d9519078d72d595580da78538957902197b /lib | |
parent | c4f1e8ed1014d2dec07ad12bed398dfa5d2bc6e1 (diff) |
Remove ability to specify expire_time
LfsToken#token does not need the ability to specify expire_time
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/lfs_token.rb | 4 |
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) |