Commit 0b4eb7f2 authored by Michael Kozono's avatar Michael Kozono

Fix code style

parent 71c36c5b
...@@ -3,10 +3,10 @@ module Gitlab ...@@ -3,10 +3,10 @@ module Gitlab
module LDAP module LDAP
class Config class Config
NET_LDAP_ENCRYPTION_METHOD = { NET_LDAP_ENCRYPTION_METHOD = {
:simple_tls => :simple_tls, simple_tls: :simple_tls,
:start_tls => :start_tls, start_tls: :start_tls,
:plain => nil plain: nil
} }.freeze
attr_accessor :provider, :options attr_accessor :provider, :options
...@@ -170,7 +170,7 @@ module Gitlab ...@@ -170,7 +170,7 @@ module Gitlab
def encryption_options def encryption_options
method = translate_method(options['encryption']) method = translate_method(options['encryption'])
options = { method: method } options = { method: method }
options.merge!(tls_options: tls_options(method)) if method options[:tls_options] = tls_options(method) if method
options options
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment