Skip to content

Commit

Permalink
fix pls
Browse files Browse the repository at this point in the history
  • Loading branch information
Claire.Nicholas authored and Claire.Nicholas committed Dec 22, 2023
1 parent 70c641f commit 13d051b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions database/deployment/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import (
)

// CreateDeployment creates a new deployment in the database.
//
//nolint:dupl // ignore similar code with update.go

Check failure on line 16 in database/deployment/create.go

View workflow job for this annotation

GitHub Actions / golangci

[golangci] database/deployment/create.go#L16

directive `//nolint:dupl // ignore similar code with update.go` is unused for linter "dupl" (nolintlint)
Raw output
database/deployment/create.go:16:1: directive `//nolint:dupl // ignore similar code with update.go` is unused for linter "dupl" (nolintlint)
//nolint:dupl // ignore similar code with update.go
^
func (e *engine) CreateDeployment(ctx context.Context, d *library.Deployment) (*library.Deployment, error) {
e.logger.WithFields(logrus.Fields{
"deployment": d.GetID(),
Expand Down
2 changes: 2 additions & 0 deletions database/deployment/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import (
)

// UpdateDeployment updates an existing deployment in the database.
//
//nolint:dupl // ignore similar code with create.go

Check failure on line 18 in database/deployment/update.go

View workflow job for this annotation

GitHub Actions / golangci

[golangci] database/deployment/update.go#L18

directive `//nolint:dupl // ignore similar code with create.go` is unused for linter "dupl" (nolintlint)
Raw output
database/deployment/update.go:18:1: directive `//nolint:dupl // ignore similar code with create.go` is unused for linter "dupl" (nolintlint)
//nolint:dupl // ignore similar code with create.go
^
func (e *engine) UpdateDeployment(ctx context.Context, d *library.Deployment) (*library.Deployment, error) {
e.logger.WithFields(logrus.Fields{
"deployment": d.GetID(),
Expand Down

0 comments on commit 13d051b

Please sign in to comment.