Skip to content

Commit

Permalink
fix: remove validate
Browse files Browse the repository at this point in the history
  • Loading branch information
katallaxie authored Aug 15, 2024
1 parent 796dd08 commit 994803d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions internal/controllers/lenses/new.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,10 @@ import (
"github.com/zeiss/service-lens/internal/ports"
"github.com/zeiss/service-lens/internal/utils"

"github.com/go-playground/validator/v10"
htmx "github.com/zeiss/fiber-htmx"
seed "github.com/zeiss/gorm-seed"
)

var validate *validator.Validate

// NewLensControllerImpl ...
type NewLensControllerImpl struct {
store seed.Database[ports.ReadTx, ports.ReadWriteTx]
Expand Down Expand Up @@ -45,7 +42,6 @@ func (l *NewLensControllerImpl) Error(err error) error {

// Post ...
func (l *NewLensControllerImpl) Post() error {
validate = validator.New()
var lens models.Lens

spec, err := l.Ctx().FormFile("spec")
Expand Down

0 comments on commit 994803d

Please sign in to comment.