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

View file

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