Skip to content

Commit

Permalink
Drop extra function
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiancook committed Aug 28, 2023
1 parent b610581 commit 80fc00a
Showing 1 changed file with 7 additions and 18 deletions.
25 changes: 7 additions & 18 deletions src/branding/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,24 +90,13 @@ export async function getBrandingLogo() {
}
}

return await setFileLogo();

async function setFileLogo() {
const { buffer, contentType, url } = await fetchLogo();
await save({
...existing,
contentType,
logo
}, buffer, getBrandingFileStore());
return { buffer, contentType, url }
}

async function fetchLogo() {
if (isFetchHTTP(logo)) {
return fetchHTTPBufferAndType(logo);
}
return getFileBufferAndType(logo);
}
const { buffer, contentType, url } = await fetchHTTPBufferAndType();

Check failure on line 93 in src/branding/index.ts

View workflow job for this annotation

GitHub Actions / test

Expected 1 arguments, but got 0.

Check failure on line 93 in src/branding/index.ts

View workflow job for this annotation

GitHub Actions / publish

Expected 1 arguments, but got 0.
await save({
...existing,
contentType,
logo
}, buffer, getBrandingFileStore());
return { buffer, contentType, url };
}


Expand Down

0 comments on commit 80fc00a

Please sign in to comment.