1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-12-02 22:49:09 +02:00

Chore: Implement eslint rule no-unused-expressions (#11533)

This commit is contained in:
Laurent Cozic
2024-12-18 14:30:05 +01:00
committed by GitHub
parent 482c9e9aab
commit 3cba4ec82c
17 changed files with 37 additions and 19 deletions

View File

@@ -113,6 +113,7 @@ export async function testStringPerformance(method: EncryptionMethod, dataSize:
const deserialized = await Note.unserialize(serialized);
const decryptedNote = await Note.decrypt(deserialized);
const tick3 = performance.now();
// eslint-disable-next-line no-unused-expressions -- Old code before rule was applied
(decryptedNote.title === note.title);
encryptTime += tick2 - tick1;
decryptTime += tick3 - tick2;