Bumping coverage on 0.6.0

This commit is contained in:
Dave Shanley
2023-02-18 17:10:52 -05:00
parent e6626fe22e
commit c5e9dbc360
5 changed files with 114 additions and 23 deletions

View File

@@ -296,11 +296,9 @@ func (index *SpecIndex) performExternalLookup(uri []string, componentId string,
} else {
j, _ = url.Parse(uri[0])
}
path := GenerateCleanSpecConfigBaseURL(j, uri[0], false)
newUrl, e := url.Parse(path)
if e == nil {
newUrl, _ := url.Parse(path)
if newUrl != nil {
newConfig := &SpecIndexConfig{
BaseURL: newUrl,
AllowRemoteLookup: index.config.AllowRemoteLookup,
@@ -318,9 +316,6 @@ func (index *SpecIndex) performExternalLookup(uri []string, componentId string,
index.AddChild(newIndex)
index.refLock.Unlock()
externalSpecIndex = newIndex
} else {
return nil
}
}