mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-01-11 03:11:50 +00:00
fix compile and lint errors
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user