fix compile and lint errors

This commit is contained in:
André Roth
2024-10-15 13:08:33 +02:00
parent a56f52ff18
commit f4057850b9

View File

@@ -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 {