From cb1ba4d878349cab3faacaa83f883ef9330da3aa Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Wed, 18 Aug 2021 21:02:53 +0300 Subject: [PATCH] Run format --- backend/src/plugins/Utility/commands/JumboCmd.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/backend/src/plugins/Utility/commands/JumboCmd.ts b/backend/src/plugins/Utility/commands/JumboCmd.ts index b688b686..c35e1367 100644 --- a/backend/src/plugins/Utility/commands/JumboCmd.ts +++ b/backend/src/plugins/Utility/commands/JumboCmd.ts @@ -15,16 +15,13 @@ async function getBufferFromUrl(url: string): Promise { } function bufferToPhotonImage(input: Buffer): photon.PhotonImage { - const base64 = input - .toString("base64") - .replace(/^data:image\/\w+;base64,/, ""); + const base64 = input.toString("base64").replace(/^data:image\/\w+;base64,/, ""); return photon.PhotonImage.new_from_base64(base64); } function photonImageToBuffer(image: photon.PhotonImage): Buffer { - const base64 = image.get_base64() - .replace(/^data:image\/\w+;base64,/, ""); + const base64 = image.get_base64().replace(/^data:image\/\w+;base64,/, ""); return Buffer.from(base64, "base64"); }