mirror of
https://github.com/wukko/cobalt.git
synced 2025-05-17 21:57:05 +02:00
api/bluesky: remove redundant await & async
This commit is contained in:
parent
5210d62490
commit
2dbcdb18f9
@ -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" };
|
||||
|
Loading…
x
Reference in New Issue
Block a user