Skip to content

Commit

Permalink
Remove useless await
Browse files Browse the repository at this point in the history
  • Loading branch information
ocavue committed Dec 14, 2023
1 parent bd6521e commit 40517a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,14 @@ export function decrypt({
* @param cipherblob - The encrypted message as a Uint8Array.
* @returns A Promise that resolves to the decrypted plaintext string or null if decryption fails.
*/
export const decryptBlobAsString = async ({
export const decryptBlobAsString = ({
key,
cipherblob,
}: {
key: HexString
cipherblob: EncryptedBlobMessage
}): Promise<Utf8String | null> => {
const decryptedBlob = await decryptBlob({key, cipherblob})
}): Utf8String | null => {
const decryptedBlob = decryptBlob({key, cipherblob})

if (!decryptedBlob) return null

Expand Down

0 comments on commit 40517a4

Please sign in to comment.