Skip to content

Commit 992104a

Browse files
committed
fix: apply prettier formatting and fix unused catch binding
- Run prettier --write to fix formatting in 5 files - Fix unused 'e' variable in catch block (response-util.ts) → use bare catch {} - Remove stale eslint-disable comment https://claude.ai/code/session_011ivCRcjRk93AMkjLwsbquz
1 parent f906d04 commit 992104a

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

node/.prettierrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ module.exports = {
55
printWidth: 120,
66
tabWidth: 4,
77
endOfLine: 'lf',
8-
};
8+
};

node/build.wrapper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ esbuild
1818
],
1919
external: ['playwright-core/*'],
2020
})
21-
.catch(() => process.exit(1));
21+
.catch(() => process.exit(1));

node/playwright-wrapper/playwright-state.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,6 @@ export async function newPersistentContext(
901901
return response;
902902
}
903903

904-
905904
// NOTE: The launchElectron, closeElectron, and openElectronDevTools functions below
906905
// were contributed by an external contributor with AI assistance and are NOT covered
907906
// by the Robot Framework Foundation copyright at the top of this file.
@@ -925,7 +924,9 @@ export async function launchElectron(
925924

926925
// Guard against double-launch: close any already-running Electron app first.
927926
if (openBrowsers.electronApp) {
928-
try { await openBrowsers.electronApp.close(); } catch (_) {} // eslint-disable-line
927+
try {
928+
await openBrowsers.electronApp.close();
929+
} catch (_) {} // eslint-disable-line
929930
if (openBrowsers.electronBrowserStateId) {
930931
openBrowsers.removeBrowserById(openBrowsers.electronBrowserStateId);
931932
openBrowsers.electronBrowserStateId = null;

node/playwright-wrapper/response-util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export function parseRegExpOrKeepString(str: string): RegExp | string {
136136
return new RegExp(matcher, flags);
137137
}
138138
return str;
139-
} catch (e) { // eslint-disable-line
139+
} catch {
140140
return str;
141141
}
142142
}

node/playwright-wrapper/static/selector-finder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,4 +690,4 @@ button.${BROWSER_LIBRARY_SELECTOR_CLASS} {
690690
addElement(label);
691691
window.requestAnimationFrame(updateTexts);
692692
});
693-
};
693+
};

0 commit comments

Comments
 (0)