diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2017-02-20 20:42:52 +0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2017-02-20 20:48:12 +0300 |
commit | 20128693eb2b060735f8ff2547ce00f0296881ac (patch) | |
tree | 3579c2acddf800c84ed9166d39ac645bb3f2ae52 /lib | |
parent | 4ff491a1949c0d390f6669e6d6d6ee3aa66b94db (diff) |
Use leading periods on UserFormatter#find_by_external_uid
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/github_import/user_formatter.rb | 5 |
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 |