From ab8c659fd2e7d1938740472327cf56843e4fd90a Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 9 Jul 2018 17:23:00 +0300 Subject: Adapt to repository_url(string) ctor throwing invalid_argument for empty string --- bpkg/rep-remove.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'bpkg/rep-remove.cxx') diff --git a/bpkg/rep-remove.cxx b/bpkg/rep-remove.cxx index 192fe47..c070418 100644 --- a/bpkg/rep-remove.cxx +++ b/bpkg/rep-remove.cxx @@ -433,9 +433,7 @@ namespace bpkg try { repository_url u (a); - - if (u.empty ()) - fail << "empty repository location"; + assert (!u.empty ()); for (const lazy_shared_ptr& rp: ua) { -- cgit v1.1