Code cleanup due to Crystal >= 0.28.0

This commit is contained in:
Brian J. Cardiff 2019-06-06 12:36:16 -03:00
parent 2bfda2aa13
commit 4b4441bb37
3 changed files with 3 additions and 22 deletions

View file

@ -9,15 +9,7 @@ class SQLite3::Connection < DB::Connection
end
def self.filename(uri : URI)
{% if compare_versions(Crystal::VERSION, "0.28.0") >= 0 %}
URI.unescape((uri.host || "") + uri.path)
{% else %}
URI.unescape (if path = uri.path
(uri.host || "") + path
else
uri.opaque.not_nil!
end)
{% end %}
URI.unescape((uri.host || "") + uri.path)
end
def build_prepared_statement(query)