diff options
author | Michael Kozono <mkozono@gmail.com> | 2017-09-21 01:29:45 +0300 |
---|---|---|
committer | Michael Kozono <mkozono@gmail.com> | 2017-10-07 20:28:13 +0300 |
commit | 7e3eb257babed7317a90e0ad62ca810108e28646 (patch) | |
tree | 25ffd2d612f98885f376ac0532d489a1fab1283c /lib | |
parent | f610fea7771f09067c5ee76468d07e217794934e (diff) |
Fix for null DN
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/ldap/dn.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/ldap/dn.rb b/lib/gitlab/ldap/dn.rb index f62d36101c4..60e2ba96587 100644 --- a/lib/gitlab/ldap/dn.rb +++ b/lib/gitlab/ldap/dn.rb @@ -202,7 +202,7 @@ module Gitlab # Returns the DN as an array in the form expected by the constructor. def to_a a = [] - self.each_pair { |key, value| a << key << value } + self.each_pair { |key, value| a << key << value } unless @dn.empty? a end |