diff --git a/api/publish.go b/api/publish.go index 660e5e17..4c07ab1e 100644 --- a/api/publish.go +++ b/api/publish.go @@ -184,11 +184,11 @@ type publishedRepoCreateParams struct { // @Router /api/publish/{prefix} [post] func apiPublishRepoOrSnapshot(c *gin.Context) { var ( - b publishedRepoCreateParams + b publishedRepoCreateParams components []string - names []string - sources []interface{} - resources []string + names []string + sources []interface{} + resources []string ) param := slashEscape(c.Params.ByName("prefix")) @@ -712,7 +712,7 @@ func apiPublishSourcesUpdate(c *gin.Context) { } revision := published.ObtainRevision() - sources := make(map[string]string, 0, len(b)) + sources := make(map[string]string, len(b)) revision.Sources = sources for _, source := range b {