Skip to content
Snippets Groups Projects
Verified Commit d7c51f89 authored by Alexander Olofsson's avatar Alexander Olofsson
Browse files

api: Make rubocop happier

parent f0b46bb1
No related branches found
No related tags found
No related merge requests found
Pipeline #61232 failed
......@@ -67,11 +67,7 @@ module MatrixSdk
@synapse = params.fetch(:synapse, true)
@http = nil
if RUBY_ENGINE == 'jruby'
self.threadsafe = params.fetch(:threadsafe, :multithread)
else
self.threadsafe = params.fetch(:threadsafe, true)
end
self.threadsafe = params.fetch(:threadsafe, (RUBY_ENGINE == 'jruby') ? :multithread : true)
([params.fetch(:protocols, [:CS])].flatten - protocols).each do |proto|
self.class.include MatrixSdk::Protocols.const_get(proto)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment