From 0b4eb7f21851b478d7fe179a1213d090d8ce4c57 Mon Sep 17 00:00:00 2001 From: Michael Kozono Date: Fri, 9 Jun 2017 11:47:20 -0700 Subject: [PATCH] Fix code style --- lib/gitlab/ldap/config.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/gitlab/ldap/config.rb b/lib/gitlab/ldap/config.rb index db76ee098c5..163e49ecc1c 100644 --- a/lib/gitlab/ldap/config.rb +++ b/lib/gitlab/ldap/config.rb @@ -3,10 +3,10 @@ module Gitlab module LDAP class Config NET_LDAP_ENCRYPTION_METHOD = { - :simple_tls => :simple_tls, - :start_tls => :start_tls, - :plain => nil - } + simple_tls: :simple_tls, + start_tls: :start_tls, + plain: nil + }.freeze attr_accessor :provider, :options @@ -170,7 +170,7 @@ module Gitlab def encryption_options method = translate_method(options['encryption']) options = { method: method } - options.merge!(tls_options: tls_options(method)) if method + options[:tls_options] = tls_options(method) if method options end