Use default parameter instead of reassignment (S7760)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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.`,
|
||||||
|
|||||||
Reference in New Issue
Block a user