Skip to content

Commit 7193504

Browse files
committed
Formatting
1 parent c8d7ab6 commit 7193504

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/influxdb/config.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,11 @@ def opts_from_url(url)
146146

147147
def opts_from_non_params(url)
148148
{}.tap do |o|
149-
o[:host] = url.host if url.host
150-
o[:port] = url.port if url.port
151-
o[:username] = URI.decode_www_form_component(url.user) if url.user
152-
o[:password] = URI.decode_www_form_component(url.password) if url.password
153-
o[:database] = url.path[1..-1] if url.path.length > 1
149+
o[:host] = url.host if url.host
150+
o[:port] = url.port if url.port
151+
o[:username] = URI.decode_www_form_component(url.user) if url.user
152+
o[:password] = URI.decode_www_form_component(url.password) if url.password
153+
o[:database] = url.path[1..-1] if url.path.length > 1
154154
o[:use_ssl] = url.scheme == "https".freeze
155155

156156
o[:udp] = { host: o[:host], port: o[:port] } if url.scheme == "udp"

0 commit comments

Comments
 (0)