From 7371cdeb948c591e1648214db8f72bba725c2517 Mon Sep 17 00:00:00 2001 From: npeter83 Date: Fri, 13 Nov 2026 01:42:36 +0100 Subject: [PATCH] refactor(downloads): the GIF span helper stays inside lib/gif --- frontend/src/lib/gif.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/src/lib/gif.ts b/frontend/src/lib/gif.ts index c47ac41d..26d8bcc3 100644 --- a/frontend/src/lib/gif.ts +++ b/frontend/src/lib/gif.ts @@ -59,8 +59,7 @@ export const atMs = (s: number) => Math.round(s * 1000) / 1000; /** A range's length in whole milliseconds, between its ends as the request sends them: the length * the server judges (gif.too_long), so a range the panel allows is never refused for its length, * and none it refuses would have been made. */ -export const spanMs = (start: number, end: number) => - Math.round(end * 1000) - Math.round(start * 1000); +const spanMs = (start: number, end: number) => Math.round(end * 1000) - Math.round(start * 1000); /** A range's length to show beside a verdict: over the cap it is rounded up to the tenth, so a * refused range never reads as one the cap allows ("0:30.0" for 30.03 s). */