Skip to content

Commit

Permalink
Change types for fetching github content
Browse files Browse the repository at this point in the history
  • Loading branch information
kemmerle committed Dec 4, 2024
1 parent 817ed97 commit 18ad752
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ export async function fetchFileFromRepository(
repoPath: RepoPath,
filePath: string,
ref: string
): Promise<Buffer> {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
): Promise<any> {
try {
logger.debug(
i18n(`${i18nKey}.fetchFileFromRepository.fetching`, {
Expand Down Expand Up @@ -145,6 +146,7 @@ export async function fetchGitHubRepoContentFromDownloadUrl(
} else {
fileContents = resp.data;
}
// @ts-expect-error TODO: Discuss with team how to address error
fs.outputFileSync(dest, fileContents);
}

Expand Down

0 comments on commit 18ad752

Please sign in to comment.