From 20128693eb2b060735f8ff2547ce00f0296881ac Mon Sep 17 00:00:00 2001 From: Douglas Barbosa Alexandre Date: Mon, 20 Feb 2017 14:42:52 -0300 Subject: Use leading periods on UserFormatter#find_by_external_uid --- lib/gitlab/github_import/user_formatter.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/gitlab/github_import/user_formatter.rb b/lib/gitlab/github_import/user_formatter.rb index 7550326ffbe..f0237d054da 100644 --- a/lib/gitlab/github_import/user_formatter.rb +++ b/lib/gitlab/github_import/user_formatter.rb @@ -44,8 +44,9 @@ module Gitlab User.select(:id) .joins(:identities).where(identities[:provider].eq(:github) - .and(identities[:extern_uid].eq(id))). - first.try(:id) + .and(identities[:extern_uid].eq(id))) + .first + .try(:id) end end end -- cgit v1.2.1