From 09b3b4bc01d00e1565f03a5abe213bafe0b667c0 Mon Sep 17 00:00:00 2001 From: "Brian J. Cardiff" Date: Tue, 30 Aug 2016 15:22:27 -0300 Subject: [PATCH] minor code cleanup --- src/db/database.cr | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/db/database.cr b/src/db/database.cr index cd63456..d7486fd 100644 --- a/src/db/database.cr +++ b/src/db/database.cr @@ -27,8 +27,7 @@ module DB # :nodoc: def initialize(@driver : Driver, @uri : URI) - # TODO: PR HTTP::Params.new -> HTTP::Params.new(Hash(String, Array(String)).new) - params = (query = uri.query) ? HTTP::Params.parse(query) : HTTP::Params.new(Hash(String, Array(String)).new) + params = HTTP::Params.parse(uri.query || "") pool_options = @driver.connection_pool_options(params) @setup_connection = ->(conn : Connection) {}