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:
parent
e4128b89e4
commit
6b9ecead89
4 changed files with 9 additions and 329 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue