Skip to content

Commit 7312075

Browse files
committed
fixup! feat: Refactor repositories download contents
1 parent 52eb7b3 commit 7312075

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

tools/metadata/main_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,12 +362,11 @@ func newTestServer(t *testing.T, ref string, files map[string]any) *httptest.Ser
362362
descriptionsContent = append(descriptionsContent, &github.RepositoryContent{
363363
Name: github.Ptr(path.Base(path.Dir(name))),
364364
})
365-
dlURL := server.URL + "/dl/" + name
366365
mux.HandleFunc(
367366
path.Join(repoPath, "contents/descriptions", name),
368367
jsonHandler(refQuery, &github.RepositoryContent{
369368
Name: github.Ptr(path.Base(name)),
370-
DownloadURL: &dlURL,
369+
DownloadURL: github.Ptr(server.URL + "/dl/" + name),
371370
}),
372371
)
373372
mux.HandleFunc(

0 commit comments

Comments
 (0)