From d167795623e29cd840d08b576cf0afbb2b721a2c Mon Sep 17 00:00:00 2001 From: saneery Date: Wed, 28 Aug 2019 15:19:48 +0300 Subject: [PATCH] fix test --- .../lib/block_scout_web/views/api_docs_view.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/block_scout_web/lib/block_scout_web/views/api_docs_view.ex b/apps/block_scout_web/lib/block_scout_web/views/api_docs_view.ex index a9b816abb9..eabd883df9 100644 --- a/apps/block_scout_web/lib/block_scout_web/views/api_docs_view.ex +++ b/apps/block_scout_web/lib/block_scout_web/views/api_docs_view.ex @@ -40,8 +40,8 @@ defmodule BlockScoutWeb.APIDocsView do path = url_params[:path] scheme = - if Keyword.get(opts, :with_scheme, false) do - url_params[:scheme] <> "://" + if Keyword.get(opts, :with_scheme, false) && url_params[:scheme] do + "#{url_params[:scheme]}://" end if host != "localhost" do