Skip to content

Commit

Permalink
fix: lint issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
mohitpubnub committed Sep 26, 2023
1 parent 3e9c721 commit 6718489
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/crypto/modules/NodeCryptoModule/nodeCryptoModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ export class CryptoModule {
//@ts-ignore: can not infer that PubNubFile has data field
if (file.data instanceof Readable) {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
//@ts-ignore: default cryptor will be there. As long as legacy cryptor supported.
const encryptedStream = await(this.defaultCryptor as ICryptor).encryptStream(file.data);
//@ts-ignore: PubNubFile as value.
const encryptedStream = await (this.defaultCryptor as ICryptor).encryptStream(file.data);
const header = CryptorHeader.from(this.defaultCryptor.identifier, encryptedStream.metadata!);

const payload = new Uint8Array(header!.length);
Expand Down

0 comments on commit 6718489

Please sign in to comment.