diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-07-09 17:23:00 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-07-09 18:11:23 +0300 |
commit | ab8c659fd2e7d1938740472327cf56843e4fd90a (patch) | |
tree | 89c17f192b17ffa3de0bd5ae2e8525f3c47130eb /bpkg/rep-remove.cxx | |
parent | eeb4dd62fe81070217511a754ca539325bdd9d78 (diff) |
Adapt to repository_url(string) ctor throwing invalid_argument for empty string
Diffstat (limited to 'bpkg/rep-remove.cxx')
-rw-r--r-- | bpkg/rep-remove.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
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<repository>& rp: ua) { |