Commit 81439c90 authored by Phil Hughes's avatar Phil Hughes

Moved code to single line if

parent 438d614b
......@@ -25,11 +25,9 @@ module IssuablesHelper
if @project
member = @project.team.find_member(user_id)
if member
user = member.user
end
user = member.user if member
else
user = User.find(user_id)
user = User.find_by(id: user_id)
end
if user
......
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