refactor: 可読性のため一部でArray.prototype.atを使うように (#11274)

* refactor: `Array.prototype.at`を使うように

* fixup! refactor: `Array.prototype.at`を使うように
This commit is contained in:
okayurisotto
2023-07-14 10:45:01 +09:00
committed by GitHub
parent c0dbc3b53f
commit 2b6dbd4fcb
19 changed files with 46 additions and 44 deletions

View File

@@ -90,7 +90,7 @@ export class ExportNotesProcessorService {
break;
}
cursor = notes[notes.length - 1].id;
cursor = notes.at(-1)?.id ?? null;
for (const note of notes) {
let poll: Poll | undefined;