mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-07 12:37:48 +00:00
Bumping coverage on 0.6.0
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user