diff options
author | Michael Kozono <mkozono@gmail.com> | 2017-06-09 21:47:20 +0300 |
---|---|---|
committer | Michael Kozono <mkozono@gmail.com> | 2017-07-26 12:43:37 +0300 |
commit | 0b4eb7f21851b478d7fe179a1213d090d8ce4c57 (patch) | |
tree | 019daffee636114e0cf45ca4adfd17b4b089c656 | |
parent | 71c36c5bb48ad70ec6f079bbedd6114b769805fa (diff) |
Fix code style
-rw-r--r-- | lib/gitlab/ldap/config.rb | 10 |
1 files 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 |