Jonas Jenwald 2022-08-24 16:46:26 +02:00
parent 14e8167df9
commit 723584dd4f
2 changed files with 2 additions and 3 deletions

View File

@ -49,6 +49,7 @@
"unicorn/no-instanceof-array": "error", "unicorn/no-instanceof-array": "error",
"unicorn/no-new-buffer": "error", "unicorn/no-new-buffer": "error",
"unicorn/no-useless-spread": "error", "unicorn/no-useless-spread": "error",
"unicorn/prefer-array-find": "error",
"unicorn/prefer-array-flat": "error", "unicorn/prefer-array-flat": "error",
"unicorn/prefer-array-flat-map": "error", "unicorn/prefer-array-flat-map": "error",
"unicorn/prefer-array-index-of": "error", "unicorn/prefer-array-index-of": "error",

View File

@ -1027,9 +1027,7 @@ function stopServer() {
} }
function getSession(browser) { function getSession(browser) {
return sessions.filter(function (session) { return sessions.find(session => session.name === browser);
return session.name === browser;
})[0];
} }
async function closeSession(browser) { async function closeSession(browser) {