refactor: simplify storage function declarations

This commit is contained in:
2025-06-17 00:10:19 +03:00
parent 8a3d8d9122
commit e27cc5a00f

View File

@@ -1,8 +1,8 @@
export async function getLists() { async function getLists() {
const { lists } = await chrome.storage.local.get("lists"); const { lists } = await chrome.storage.local.get("lists");
return lists || []; return lists || [];
} }
export async function saveLists(lists) { async function saveLists(lists) {
await chrome.storage.local.set({ lists }); await chrome.storage.local.set({ lists });
} }