Skip to content

Commit

Permalink
Addresses Review COmment
Browse files Browse the repository at this point in the history
  • Loading branch information
gbdubs committed Jan 24, 2024
1 parent 4c19f7d commit 86ea8d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/server/pactasrv/pacta_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (s *Server) ListPactaVersions(ctx context.Context, request api.ListPactaVer
func (s *Server) CreatePactaVersion(ctx context.Context, request api.CreatePactaVersionRequestObject) (api.CreatePactaVersionResponseObject, error) {
if err := anyError(
checkStringLimitSmall("name", request.Body.Name),
checkStringLimitMedium("digest", request.Body.Digest),
checkStringLimitSmall("digest", request.Body.Digest),
checkStringLimitMedium("description", request.Body.Description),
); err != nil {
return nil, err
Expand Down Expand Up @@ -89,7 +89,7 @@ func (s *Server) CreatePactaVersion(ctx context.Context, request api.CreatePacta
func (s *Server) UpdatePactaVersion(ctx context.Context, request api.UpdatePactaVersionRequestObject) (api.UpdatePactaVersionResponseObject, error) {
if err := anyError(
checkStringLimitSmallPtr("name", request.Body.Name),
checkStringLimitMediumPtr("digest", request.Body.Digest),
checkStringLimitSmallPtr("digest", request.Body.Digest),
checkStringLimitMediumPtr("description", request.Body.Description),
); err != nil {
return nil, err
Expand Down

0 comments on commit 86ea8d8

Please sign in to comment.