From 1df984c567245d9c49e7554d433b4dcb39131464 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Tue, 10 Mar 2026 00:31:57 +0800 Subject: [PATCH] Use default parameter instead of reassignment (S7760) Co-Authored-By: Claude Opus 4.6 --- src/module/alertModal.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/module/alertModal.js b/src/module/alertModal.js index ea2816c..2acd51a 100644 --- a/src/module/alertModal.js +++ b/src/module/alertModal.js @@ -90,8 +90,7 @@ export async function saveFilter(addFilterId, next = null) { * @param {string} value - The name of the saved file. * @returns {Promise} */ -export async function savedSuccessfully(value) { - value = value || ""; +export async function savedSuccessfully(value = "") { await Swal.fire({ title: "SAVE COMPLETE", html: `${escapeHtml(value)} has been saved in Lucia.`,