mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Enable unicorn/prefer-at
unconditionally (PR 15014 follow-up)
Now that Node.js version 18 is required, we should be able to use `Array.prototype.at()` everywhere in the code-base.
This commit is contained in:
parent
f79f48c2b4
commit
dcd55a7164
6 changed files with 7 additions and 16 deletions
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/* eslint-disable no-var, unicorn/prefer-at */
|
||||
/* eslint-disable no-var */
|
||||
|
||||
"use strict";
|
||||
|
||||
|
@ -750,9 +750,7 @@ function refTestPostHandler(req, res) {
|
|||
});
|
||||
}
|
||||
|
||||
var isDone =
|
||||
taskResults[taskResults.length - 1] &&
|
||||
taskResults[taskResults.length - 1][lastPageNum - 1];
|
||||
var isDone = taskResults.at(-1) && taskResults.at(-1)[lastPageNum - 1];
|
||||
if (isDone) {
|
||||
checkRefTestResults(browser, id, taskResults);
|
||||
session.remaining--;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue