Commit ce2eee15 authored by Ash McKenzie's avatar Ash McKenzie

Use user? instead

parent 09339a55
......@@ -38,11 +38,11 @@ module Gitlab
end
def type
actor.is_a?(User) ? :lfs_token : :lfs_deploy_token
user? ? :lfs_token : :lfs_deploy_token
end
def actor_name
actor.is_a?(User) ? actor.username : "lfs+deploy-key-#{actor.id}"
user? ? actor.username : "lfs+deploy-key-#{actor.id}"
end
private
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment