diff options
author | Ash McKenzie <amckenzie@gitlab.com> | 2018-10-23 21:14:18 +1100 |
---|---|---|
committer | Ash McKenzie <amckenzie@gitlab.com> | 2018-12-05 11:53:39 +1100 |
commit | 3bccd2b17952bfa2db3f2e1fbca8ee93cf5f5654 (patch) | |
tree | f8ee59130f6ad270584aea3300b4ea63d667b536 | |
parent | 23d921989b66881a647afaeafec357f15293790a (diff) | |
download | gitlab-ce-3bccd2b17952bfa2db3f2e1fbca8ee93cf5f5654.tar.gz |
Use user? instead
-rw-r--r-- | lib/gitlab/lfs_token.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/lfs_token.rb b/lib/gitlab/lfs_token.rb index fa44bd842b2..05d3096a208 100644 --- a/lib/gitlab/lfs_token.rb +++ b/lib/gitlab/lfs_token.rb @@ -38,7 +38,7 @@ module Gitlab end def type - actor.is_a?(User) ? :lfs_token : :lfs_deploy_token + user? ? :lfs_token : :lfs_deploy_token end def actor_name |