1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 05:40:11 +01:00

refactor: remove temporary solution joinUrlPath and use joinPath from Go 1.19.1 net/url

This commit is contained in:
tschmidtb51 2022-09-24 18:53:03 +02:00
parent e4128b89e4
commit 6b9ecead89
4 changed files with 9 additions and 329 deletions

View file

@ -198,7 +198,7 @@ func (afp *AdvisoryFileProcessor) loadIndex(
return nil, err
}
indexURL := util.JoinURLPath(base, "index.txt").String()
indexURL := base.JoinPath("index.txt").String()
resp, err := afp.client.Get(indexURL)
if err != nil {
return nil, err
@ -215,7 +215,7 @@ func (afp *AdvisoryFileProcessor) loadIndex(
continue
}
files = append(files,
PlainAdvisoryFile(util.JoinURLPath(base, u).String()))
PlainAdvisoryFile(base.JoinPath(u).String()))
}
if err := scanner.Err(); err != nil {