Skip to content

Commit

Permalink
Remove unnecessary calls to ValidateCentralSpec and ValidateScannerSpec
Browse files Browse the repository at this point in the history
  • Loading branch information
mtesseract committed Aug 4, 2022
1 parent 1a82643 commit f7f3a64
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions internal/dinosaur/pkg/handlers/dinosaur.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ func (h dinosaurHandler) Create(w http.ResponseWriter, r *http.Request) {
handlers.ValidateMultiAZEnabled(&dinosaurRequest.MultiAz, "creating central requests"),
validateCentralResourcesUnspecified(ctx, &dinosaurRequest),
validateScannerResourcesUnspecified(ctx, &dinosaurRequest),
ValidateCentralSpec(ctx, &dinosaurRequest, "central", convDinosaur),
ValidateScannerSpec(ctx, &dinosaurRequest, "scanner", convDinosaur),
},
Action: func() (interface{}, *errors.ServiceError) {
svcErr := h.service.RegisterDinosaurJob(convDinosaur)
Expand Down

0 comments on commit f7f3a64

Please sign in to comment.