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:
parent
e8972c1190
commit
7d469cf1c1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue