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