Skip to content

Commit

Permalink
Fixed eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Rychu-Pawel committed Nov 24, 2024
1 parent c8dd60a commit 0d9f6f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion test/unit/createCipher.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ function encryptAsync(chunkStartPostionInBytes: number, chunkLengthInBytes: numb
const chunkCipher = createCipher(key, iv, chunkStartPostionInBytes);
const chunkCipherTextBuffer = Buffer.concat([chunkCipher.update(plainTextChunk, `utf8`), chunkCipher.final()]);
resolve(chunkCipherTextBuffer);
} catch (error) {
}
catch (error) {
reject(error);
}
});
Expand Down
3 changes: 2 additions & 1 deletion test/unit/createDecipher.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ function decryptAsync(chunkStartPostionInBytes: number, chunkLengthInBytes: numb
const chunkDecipher = createDecipher(key, iv, chunkStartPostionInBytes);
const chunkPlainTextBuffer = Buffer.concat([chunkDecipher.update(cipherTextBufferChunk), chunkDecipher.final()]);
resolve(chunkPlainTextBuffer);
} catch (error) {
}
catch (error) {
reject(error);
}
});
Expand Down

0 comments on commit 0d9f6f2

Please sign in to comment.