minor refactor

This commit is contained in:
silverwind 2019-06-27 19:17:31 +02:00
parent ab472118a4
commit e48c40410c
Signed by: silverwind
GPG Key ID: 2E62B41C93869443

@ -352,11 +352,7 @@ function finish(obj, opts = {}) {
}
function normalizeRegistryUrl(url) {
if (url.endsWith("/")) {
return url.substring(0, url.length - 1);
} else {
return url;
}
return url.endsWith("/") ? url.substring(0, url.length - 1) : url;
}
function highlightDiff(a, b, added) {