From 2dbcdb18f95967bf659f346aac56a34e6a86fd6d Mon Sep 17 00:00:00 2001 From: wukko Date: Mon, 9 Sep 2024 19:32:17 +0600 Subject: [PATCH] api/bluesky: remove redundant await & async --- api/src/processing/services/bluesky.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/src/processing/services/bluesky.js b/api/src/processing/services/bluesky.js index 6ffcb29f..84571bcd 100644 --- a/api/src/processing/services/bluesky.js +++ b/api/src/processing/services/bluesky.js @@ -30,7 +30,7 @@ const extractVideo = async ({ getPost, filename }) => { } } -const extractImages = async ({ getPost, filename, alwaysProxy }) => { +const extractImages = ({ getPost, filename, alwaysProxy }) => { const images = getPost?.thread?.post?.embed?.images; if (!images || images.length === 0) { @@ -83,10 +83,10 @@ export default async function ({ user, post, alwaysProxy }) { const filename = `bluesky_${user}_${post}`; if (embedType === "app.bsky.embed.video#view") { - return await extractVideo({ getPost, filename }); + return extractVideo({ getPost, filename }); } if (embedType === "app.bsky.embed.images#view") { - return await extractImages({ getPost, filename, alwaysProxy }); + return extractImages({ getPost, filename, alwaysProxy }); } return { error: "fetch.empty" };