Fix some minor rubocop (lint) offenses

This commit is contained in:
Timothée Floure 2018-12-23 16:40:02 +01:00
parent beeca5ce46
commit 396fcc7418

View file

@ -27,7 +27,8 @@ def connect_ldap
} }
) )
ldap_addr = "#{@configuration['ldap']['host']}:#{@configuration['ldap']['port']}" ldap_addr = @configuration['ldap']['host'] + ':' +
@configuration['ldap']['port']
begin begin
if conn.bind if conn.bind
conn conn
@ -142,7 +143,7 @@ end
def main def main
# Parse configuration, bind to LDAP server # Parse configuration, bind to LDAP server
@configuration = read_configuration(@configuration_file) @configuration = read_configuration(@configuration_file)
conn = connect_ldap() conn = connect_ldap
domain = @configuration['domain'] domain = @configuration['domain']
basetree = @configuration['ldap']['lists']['basetree'] basetree = @configuration['ldap']['lists']['basetree']