summaryrefslogtreecommitdiff
path: root/app/helpers/issuables_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/issuables_helper.rb')
-rw-r--r--app/helpers/issuables_helper.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/app/helpers/issuables_helper.rb b/app/helpers/issuables_helper.rb
index 23f389b8c5f..81df2094392 100644
--- a/app/helpers/issuables_helper.rb
+++ b/app/helpers/issuables_helper.rb
@@ -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