396fcc7418e741cdfd9351fbd72b025270d2dd1e — Timothée Floure 7 months ago beeca5c
Fix some minor rubocop (lint) offenses
1 files changed, 3 insertions(+), 2 deletions(-)

M unipoly-mlmmj-ldap-sync
M unipoly-mlmmj-ldap-sync => unipoly-mlmmj-ldap-sync +3 -2
@@ 27,7 27,8 @@ }
    )
  
-   ldap_addr = "#{@configuration['ldap']['host']}:#{@configuration['ldap']['port']}"
+   ldap_addr = @configuration['ldap']['host'] + ':' +
+               @configuration['ldap']['port']
    begin
      if conn.bind
        conn


@@ 142,7 143,7 @@ def main
    # Parse configuration, bind to LDAP server
    @configuration = read_configuration(@configuration_file)
-   conn = connect_ldap()
+   conn = connect_ldap
  
    domain = @configuration['domain']
    basetree = @configuration['ldap']['lists']['basetree']