mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-20 00:18:45 +01:00
Enable tsconfig noUncheckedIndexedAccess
This commit is contained in:
@@ -25,7 +25,8 @@ Bootstrap.regressionBenchmark(
|
||||
debug('started generating messages');
|
||||
|
||||
for (let i = 0; i < messageCount; i += 1) {
|
||||
const contact = contacts[Math.floor(i / 2) % contacts.length];
|
||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||
const contact = contacts[Math.floor(i / 2) % contacts.length]!;
|
||||
const direction = i % 2 ? 'message' : 'reply';
|
||||
|
||||
const messageTimestamp = bootstrap.getTimestamp();
|
||||
|
||||
Reference in New Issue
Block a user