From 429ca37e551a8dff11583efa7f05dbcbcc743e7f Mon Sep 17 00:00:00 2001 From: Jeremy Kauffman Date: Wed, 28 Jun 2017 15:45:24 -0400 Subject: [PATCH] fix undefined count --- ui/js/lbryuri.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ui/js/lbryuri.js b/ui/js/lbryuri.js index a2239293b..de22770ab 100644 --- a/ui/js/lbryuri.js +++ b/ui/js/lbryuri.js @@ -122,11 +122,7 @@ lbryuri.parse = function(uri, requireProto = false) { const pathBadChars = path.match(/[^A-Za-z0-9-]/g); if (pathBadChars) { throw new Error( - __( - `Invalid character %s in path: %s`, - count == 1 ? "" : "s", - nameBadChars.join(", ") - ) + __(`Invalid character in path: %s`, nameBadChars.join(", ")) ); }