Skip to content

Commit

Permalink
fixing issue in getGithubHostedFileUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
pellicceama committed Aug 16, 2022
1 parent e55ebc6 commit 19b33fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/repo/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export async function regenerateTokenlists(dir: string) {

export function getGithubHostedFileUrl (dir: string, fileName: string) {

if(dir.includes('/assets/networks')) {
if(dir.includes('assets/networks')) {
const baseUrl = `${GITHUB_USER_CONTENT_BASE_URL}/assets/master`;
return `${baseUrl}/networks/${dir.split("/networks/")[1]}/${fileName}`;
}
Expand Down

0 comments on commit 19b33fd

Please sign in to comment.