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
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue