Fix would-be regression

57e3e942de

I changed it to a separate condition rather than depending on the order of the case-when statements to prevent this mistake again.
This commit is contained in:
Michael Kozono 2017-05-22 11:48:25 -07:00
parent e8972c1190
commit 7d469cf1c1
1 changed files with 1 additions and 3 deletions

View File

@ -243,9 +243,7 @@ module Gitlab
when User
actor
when Key
actor.user
when DeployKey
nil
actor.user unless actor.is_a?(DeployKey)
when :ci
nil
end