Remove unused error argument.

This commit is contained in:
Andrey Smirnov
2015-03-15 20:06:59 +03:00
parent 2f3b5f5a51
commit 4a6d6a85f7
3 changed files with 3 additions and 11 deletions

View File

@@ -315,12 +315,7 @@ func apiReposPackageFromDir(c *gin.Context) {
sources = []string{filepath.Join(context.UploadPath(), c.Params.ByName("dir"), c.Params.ByName("file"))}
}
packageFiles, failedFiles, err = deb.CollectPackageFiles(sources, reporter)
if err != nil {
c.Fail(500, fmt.Errorf("unable to collect package files: %s", err))
return
}
packageFiles, failedFiles = deb.CollectPackageFiles(sources, reporter)
list, err = deb.NewPackageListFromRefList(repo.RefList(), context.CollectionFactory().PackageCollection(), nil)
if err != nil {