mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
fix compile and lint errors
This commit is contained in:
+5
-5
@@ -184,11 +184,11 @@ type publishedRepoCreateParams struct {
|
|||||||
// @Router /api/publish/{prefix} [post]
|
// @Router /api/publish/{prefix} [post]
|
||||||
func apiPublishRepoOrSnapshot(c *gin.Context) {
|
func apiPublishRepoOrSnapshot(c *gin.Context) {
|
||||||
var (
|
var (
|
||||||
b publishedRepoCreateParams
|
b publishedRepoCreateParams
|
||||||
components []string
|
components []string
|
||||||
names []string
|
names []string
|
||||||
sources []interface{}
|
sources []interface{}
|
||||||
resources []string
|
resources []string
|
||||||
)
|
)
|
||||||
|
|
||||||
param := slashEscape(c.Params.ByName("prefix"))
|
param := slashEscape(c.Params.ByName("prefix"))
|
||||||
@@ -712,7 +712,7 @@ func apiPublishSourcesUpdate(c *gin.Context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
revision := published.ObtainRevision()
|
revision := published.ObtainRevision()
|
||||||
sources := make(map[string]string, 0, len(b))
|
sources := make(map[string]string, len(b))
|
||||||
revision.Sources = sources
|
revision.Sources = sources
|
||||||
|
|
||||||
for _, source := range b {
|
for _, source := range b {
|
||||||
|
|||||||
Reference in New Issue
Block a user