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>2018-10-23 13:14:18 +0300
committerAsh McKenzie <amckenzie@gitlab.com>2018-12-05 03:53:39 +0300
commit3bccd2b17952bfa2db3f2e1fbca8ee93cf5f5654 (patch)
treef8ee59130f6ad270584aea3300b4ea63d667b536 /lib/gitlab/lfs_token.rb
parent23d921989b66881a647afaeafec357f15293790a (diff)
Use user? instead
Diffstat (limited to 'lib/gitlab/lfs_token.rb')
-rw-r--r--lib/gitlab/lfs_token.rb2
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