From 7e3eb257babed7317a90e0ad62ca810108e28646 Mon Sep 17 00:00:00 2001 From: Michael Kozono Date: Wed, 20 Sep 2017 15:29:45 -0700 Subject: [PATCH] Fix for null DN --- lib/gitlab/ldap/dn.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- GitLab