mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Enable the unicorn/prefer-array-find
ESLint plugin rule
Please find additional information here: - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find#browser_compatibility - https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-array-find.md
This commit is contained in:
parent
14e8167df9
commit
723584dd4f
2 changed files with 2 additions and 3 deletions
|
@ -1027,9 +1027,7 @@ function stopServer() {
|
|||
}
|
||||
|
||||
function getSession(browser) {
|
||||
return sessions.filter(function (session) {
|
||||
return session.name === browser;
|
||||
})[0];
|
||||
return sessions.find(session => session.name === browser);
|
||||
}
|
||||
|
||||
async function closeSession(browser) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue