Skip to content

Commit

Permalink
fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
mandelsoft committed Oct 31, 2024
1 parent 6677960 commit 11abeaa
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions api/ocm/plugin/ppi/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ import (
"encoding/json"
"reflect"

errors2 "github.com/mandelsoft/goutils/errors"
"github.com/mandelsoft/goutils/errors"
"github.com/mandelsoft/goutils/generics"
"github.com/pkg/errors"
"golang.org/x/exp/slices"

"ocm.software/ocm/api/ocm/extensions/accessmethods/options"
Expand Down Expand Up @@ -147,11 +146,11 @@ func (t *transferHandler) GetQuestions() []DecisionHandler {

func (t *transferHandler) RegisterDecision(h DecisionHandler) error {
if TransferHandlerQuestions[h.GetQuestion()] == nil {
return errors2.ErrInvalid(KIND_QUESTION, h.GetQuestion())
return errors.ErrInvalid(KIND_QUESTION, h.GetQuestion())
}
for _, e := range t.questions {
if e.GetQuestion() == h.GetQuestion() {
return errors2.ErrAlreadyExists(KIND_QUESTION, e.GetQuestion())
return errors.ErrAlreadyExists(KIND_QUESTION, e.GetQuestion())
}
}
t.questions = append(t.questions, h)
Expand Down

0 comments on commit 11abeaa

Please sign in to comment.