Skip to content

Commit

Permalink
chore: correct wrong suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamorosi committed Oct 24, 2023
1 parent 08895d1 commit 6231b06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ export default class Conf<T extends Record<string, any> = Record<string, unknown

private _encryptData(data: string | Uint8Array): string {
if (!this.#encryptionKey) {
return typeof data === 'string' ? string : uint8ArrayToString(data);
return typeof data === 'string' ? data : uint8ArrayToString(data);
}

// Check if an initialization vector has been used to encrypt the data.
Expand Down

0 comments on commit 6231b06

Please sign in to comment.