From 2171c05ef8e93cd25d8594fe9d26d02263eb62a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Roth?= Date: Sun, 3 Nov 2024 14:13:57 +0100 Subject: [PATCH] fix lint --- api/snapshot.go | 8 ++++---- docs/index.go | 5 +++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/api/snapshot.go b/api/snapshot.go index 54433096..7e625ec9 100644 --- a/api/snapshot.go +++ b/api/snapshot.go @@ -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 { diff --git a/docs/index.go b/docs/index.go index 8350449a..ca4c914a 100644 --- a/docs/index.go +++ b/docs/index.go @@ -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