diff options
| author | James Lopez <james@jameslopez.es> | 2016-03-21 18:09:47 +0100 |
|---|---|---|
| committer | James Lopez <james@jameslopez.es> | 2016-03-21 18:09:47 +0100 |
| commit | ced56641bfc42c8380af1760fae93ba37bf2e785 (patch) | |
| tree | 8c91a0c6a5cc33dc2764b3859a096a7f5860d9a2 /lib | |
| parent | 6dfb5d7cad3e3cefd766e30a4c25a9549fa2b041 (diff) | |
| download | gitlab-ce-ced56641bfc42c8380af1760fae93ba37bf2e785.tar.gz | |
refactored code based on feedback
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/gitlab/import_url.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab/import_url.rb b/lib/gitlab/import_url.rb index adcbcc43d24..5b18d67ddc3 100644 --- a/lib/gitlab/import_url.rb +++ b/lib/gitlab/import_url.rb @@ -20,10 +20,10 @@ module Gitlab private def generate_full_url - return @url unless @credentials + return @url unless credentials @full_url = @url.dup - @full_url.user = @credentials[:user] - @full_url.password = @credentials[:password] + @full_url.user = credentials[:user] + @full_url.password = credentials[:password] @full_url end |
