Format code with standardjs and prettier

This commit is contained in:
deepsource-autofix[bot] 2022-05-17 08:19:22 +00:00 committed by GitHub
parent 0472605a4b
commit 6fb549946a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View file

@ -4,9 +4,7 @@ import { secretKey, algorithm } from "@config/encryption";
const iv = crypto.randomBytes(16); const iv = crypto.randomBytes(16);
const encrypt = (text: any): {iv: error; const encrypt = (text: any): { iv: error; content: error } => {
content: error;
} => {
const cipher = crypto.createCipheriv(algorithm, secretKey, iv); const cipher = crypto.createCipheriv(algorithm, secretKey, iv);
const encrypted = Buffer.concat([cipher.update(text), cipher.final()]); const encrypted = Buffer.concat([cipher.update(text), cipher.final()]);