From 3b6d645a3d402074259a1ccd4333fac76e861c2a Mon Sep 17 00:00:00 2001 From: zaelgohary Date: Mon, 9 Oct 2023 15:29:13 +0300 Subject: [PATCH] Remove unused content var --- packages/UI/examples/server-example/src/server.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/UI/examples/server-example/src/server.ts b/packages/UI/examples/server-example/src/server.ts index e1a278d20a..c39d1b1bee 100644 --- a/packages/UI/examples/server-example/src/server.ts +++ b/packages/UI/examples/server-example/src/server.ts @@ -48,12 +48,10 @@ const verify = async (payload: Payload) => { app.post("/api/verify", async (req: Request, res: Response) => { const payload: Payload = req.body; - let content: Uint8Array = new Uint8Array(); try { if (payload.pdfUrl) { const response = await axios.get(payload.pdfUrl, { responseType: "arraybuffer" }); - content = Uint8Array.from(Buffer.from(response.data, "base64")); - payload.content = content.toString(); + payload.content = Uint8Array.from(Buffer.from(response.data, "base64")).toString(); } const verified = await verify(payload);