forked from Blendman974/faceclaw
Introduce oxlint, and fix lint warnings
This commit is contained in:
1 parent
cb6dddd120
commit
06146c2b08
89 files changed
+818
-469
No files matched your search
@@ -57,12 +57,12 @@ export function savePersistedOpenApps(state: PersistedOpenApps): void {
|
||||
if (writeTimer !== null) clearTimeout(writeTimer);
|
||||
writeTimer = setTimeout(() => {
|
||||
writeTimer = null;
|
||||
const state = pendingState;
|
||||
const pending = pendingState;
|
||||
pendingState = null;
|
||||
if (!state) return;
|
||||
if (!pending) return;
|
||||
try {
|
||||
File.fromPath(openAppsFilePath()).writeTextSync(
|
||||
JSON.stringify({ version: STATE_VERSION, ...state }),
|
||||
JSON.stringify({ version: STATE_VERSION, ...pending }),
|
||||
);
|
||||
} catch (error) {
|
||||
console.warn("open-apps state write failed", error);
|
||||
|
||||
Reference in new issue
Block a user