Skip to content

Commit

Permalink
MDM: remove duplicate error type
Browse files Browse the repository at this point in the history
  • Loading branch information
loafoe committed Jun 1, 2022
1 parent 65ab747 commit d7c3e70
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
9 changes: 0 additions & 9 deletions connect/mdm/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,6 @@ var (
ErrNotFound = errors.New("entity not found")
ErrBaseURLCannotBeEmpty = errors.New("base URL cannot be empty")
ErrEmptyResult = errors.New("empty result")
ErrInvalidEndpointURL = errors.New("invalid endpoint URL")
ErrMissingName = errors.New("missing name value")
ErrMissingDescription = errors.New("missing description value")
ErrMalformedInputValue = errors.New("malformed input value")
ErrMissingOrganization = errors.New("missing organization")
ErrMissingProposition = errors.New("missing proposition")
ErrMissingGlobalReference = errors.New("missing global reference")
ErrNotImplementedByHSDP = errors.New("method not implemented by HSDP")
ErrEmptyResults = errors.New("empty results")
ErrOperationFailed = errors.New("operation failed")
ErrCouldNoReadResourceAfterCreate = errors.New("could not read resource after create")
)
2 changes: 1 addition & 1 deletion connect/mdm/propositions_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (p *PropositionsService) GetProposition(opt *GetPropositionsOptions, option
return nil, resp, err
}
if len(*props) == 0 {
return nil, resp, fmt.Errorf("GetProposition: %w", ErrEmptyResults)
return nil, resp, fmt.Errorf("GetProposition: %w", ErrEmptyResult)
}
return &(*props)[0], resp, nil
}
Expand Down

0 comments on commit d7c3e70

Please sign in to comment.