summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2017-02-20 14:42:52 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2017-02-20 14:48:12 -0300
commit20128693eb2b060735f8ff2547ce00f0296881ac (patch)
tree3579c2acddf800c84ed9166d39ac645bb3f2ae52
parent4ff491a1949c0d390f6669e6d6d6ee3aa66b94db (diff)
downloadgitlab-ce-20128693eb2b060735f8ff2547ce00f0296881ac.tar.gz
Use leading periods on UserFormatter#find_by_external_uid
-rw-r--r--lib/gitlab/github_import/user_formatter.rb5
1 files changed, 3 insertions, 2 deletions
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