fix compile and lint errors

This commit is contained in:
André Roth committed 2024-11-01 17:47:50 +01:00
1 parent a56f52ff18
commit f4057850b9
1 file changed
+5 -5
+5 -5
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 {