Skip to content

Commit a28a658

Browse files
committed
rename variable to avoid shadowing the global one
1 parent 3500f05 commit a28a658

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/huggingfaceSource.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ export function getHuggingFaceSource(sourceId: string, options?: {requestInit?:
6565
// remove refs/heads/ from the ref name
6666
// e.g. refs/heads/main -> main
6767
const fixedRef = refType === 'branches' ? ref.replace(/refs\/heads\//, '') : ref
68-
const sourceId = `${url.origin}/datasets/${url.repo}/${url.kind === 'file' ? 'blob' : 'tree'}/${fixedRef}${url.path}`
68+
const branchSourceId = `${url.origin}/datasets/${url.repo}/${url.kind === 'file' ? 'blob' : 'tree'}/${fixedRef}${url.path}`
6969
return {
7070
label,
71-
sourceId,
71+
sourceId: branchSourceId,
7272
}
7373
}),
7474
}

0 commit comments

Comments
 (0)