Use default parameter instead of reassignment (S7760)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-10 00:31:57 +08:00
parent 468fa63201
commit 1df984c567

View File

@@ -90,8 +90,7 @@ export async function saveFilter(addFilterId, next = null) {
* @param {string} value - The name of the saved file. * @param {string} value - The name of the saved file.
* @returns {Promise<void>} * @returns {Promise<void>}
*/ */
export async function savedSuccessfully(value) { export async function savedSuccessfully(value = "") {
value = value || "";
await Swal.fire({ await Swal.fire({
title: "SAVE COMPLETE", title: "SAVE COMPLETE",
html: `<span class="text-primary">${escapeHtml(value)}</span> has been saved in Lucia.`, html: `<span class="text-primary">${escapeHtml(value)}</span> has been saved in Lucia.`,