Skip to content

Commit

Permalink
removed error handling, no errors returned with this mode
Browse files Browse the repository at this point in the history
Signed-off-by: quobix <dave@quobix.com>
  • Loading branch information
daveshanley committed Nov 7, 2023
1 parent 52b99df commit 78b50cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
5 changes: 1 addition & 4 deletions datamodel/low/v2/swagger.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,7 @@ func createDocument(info *datamodel.SpecInfo, config *datamodel.DocumentConfigur
IndexConfig: idxConfig,
FileFilters: config.FileFilter,
}
fileFS, err := index.NewLocalFSWithConfig(&localFSConf)
if err != nil {
return nil, err
}
fileFS, _ := index.NewLocalFSWithConfig(&localFSConf)
idxConfig.AllowFileLookup = true

// add the filesystem to the rolodex
Expand Down
6 changes: 1 addition & 5 deletions datamodel/low/v3/create_document.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,7 @@ func createDocument(info *datamodel.SpecInfo, config *datamodel.DocumentConfigur
FileFilters: config.FileFilter,
}

fileFS, err := index.NewLocalFSWithConfig(&localFSConf)
if err != nil {
return nil, err
}

fileFS, _ := index.NewLocalFSWithConfig(&localFSConf)
idxConfig.AllowFileLookup = true

// add the filesystem to the rolodex
Expand Down

0 comments on commit 78b50cb

Please sign in to comment.