Merge pull request #569 from smira/linters-4

Enable goconst & interfacer linters
This commit is contained in:
Andrey Smirnov
2017-05-17 15:33:02 +03:00
committed by GitHub
26 changed files with 110 additions and 82 deletions
+2 -2
View File
@@ -145,7 +145,7 @@ func apiPublishRepoOrSnapshot(c *gin.Context) {
sources = append(sources, snapshot)
}
} else if b.SourceKind == "local" {
} else if b.SourceKind == deb.SourceLocalRepo {
var localRepo *deb.LocalRepo
localCollection := context.CollectionFactory().LocalRepoCollection()
@@ -264,7 +264,7 @@ func apiPublishUpdateSwitch(c *gin.Context) {
var updatedComponents []string
if published.SourceKind == "local" {
if published.SourceKind == deb.SourceLocalRepo {
if len(b.Snapshots) > 0 {
c.Fail(400, fmt.Errorf("snapshots shouldn't be given when updating local repo"))
return