From 0c1f6b56dc18f244c6c49e38d67eda508091817e Mon Sep 17 00:00:00 2001 From: jj Date: Mon, 10 Feb 2025 13:45:08 +0000 Subject: [PATCH] api/processing: reformat --- api/src/processing/url.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/api/src/processing/url.js b/api/src/processing/url.js index 6a22645e..82299999 100644 --- a/api/src/processing/url.js +++ b/api/src/processing/url.js @@ -102,9 +102,8 @@ function aliasURL(url) { case "loom": const idPart = parts[parts.length - 1]; - if(idPart.length > 32){ - const actualIdPart = idPart.slice(-32); - url.pathname = `/share/${actualIdPart}`; + if (idPart.length > 32) { + url.pathname = `/share/${idPart.slice(-32)}`; } break; }