mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-07-27 13:57:46 +00:00
fix lint
This commit is contained in:
+4
-4
@@ -187,9 +187,9 @@ func apiSnapshotsCreate(c *gin.Context) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
type snapshotRepositoryParams struct {
|
type snapshotRepositoryParams struct {
|
||||||
Name string `binding:"required"`
|
Name string `binding:"required"`
|
||||||
Description string
|
Description string
|
||||||
}
|
}
|
||||||
|
|
||||||
// @Summary Snapshot Repository
|
// @Summary Snapshot Repository
|
||||||
@@ -208,7 +208,7 @@ func apiSnapshotsCreateFromRepository(c *gin.Context) {
|
|||||||
err error
|
err error
|
||||||
repo *deb.LocalRepo
|
repo *deb.LocalRepo
|
||||||
snapshot *deb.Snapshot
|
snapshot *deb.Snapshot
|
||||||
b snapshotRepositoryParams
|
b snapshotRepositoryParams
|
||||||
)
|
)
|
||||||
|
|
||||||
if c.Bind(&b) != nil {
|
if c.Bind(&b) != nil {
|
||||||
|
|||||||
+3
-2
@@ -1,8 +1,9 @@
|
|||||||
package docs
|
package docs
|
||||||
|
|
||||||
import (
|
import (
|
||||||
_ "embed"
|
_ "embed" // embed html below
|
||||||
_ "github.com/swaggo/swag" // make sure swag is in go.mod
|
|
||||||
|
_ "github.com/swaggo/swag" // make sure swag is in go.mod
|
||||||
)
|
)
|
||||||
|
|
||||||
//go:embed docs.html
|
//go:embed docs.html
|
||||||
|
|||||||
Reference in New Issue
Block a user