refactor(constants): simplify BOUNCE_THRESHOLD parsing

`parseInt(undefined, 10)` returns NaN and the `|| 1` fallback already
covers it, so the `|| '1'` default was redundant.
This commit is contained in:
Federico D'Eredità committed 2026-07-26 18:49:59 +02:00
1 parent cb035fdc1a
commit 82a5a12208
1 file changed
+1 -4
+1 -4
View File
@@ -1,8 +1,5 @@
export const CURRENT_VERSION = process.env.currentVersion;
export const BOUNCE_THRESHOLD = Math.max(
1,
Number.parseInt(process.env.BOUNCE_THRESHOLD || '1', 10) || 1,
);
export const BOUNCE_THRESHOLD = Math.max(1, Number.parseInt(process.env.BOUNCE_THRESHOLD, 10) || 1);
export const AUTH_TOKEN = 'umami.auth';
export const LOCALE_CONFIG = 'umami.locale';
export const TIMEZONE_CONFIG = 'umami.timezone';