Skip to content

Commit b8cb0a6

Browse files
committed
fix import
1 parent 1a3d447 commit b8cb0a6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

api/ocm/plugin/ppi/utils.go

+3-4
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ import (
44
"encoding/json"
55
"reflect"
66

7-
errors2 "github.com/mandelsoft/goutils/errors"
7+
"github.com/mandelsoft/goutils/errors"
88
"github.com/mandelsoft/goutils/generics"
9-
"github.com/pkg/errors"
109
"golang.org/x/exp/slices"
1110

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

148147
func (t *transferHandler) RegisterDecision(h DecisionHandler) error {
149148
if TransferHandlerQuestions[h.GetQuestion()] == nil {
150-
return errors2.ErrInvalid(KIND_QUESTION, h.GetQuestion())
149+
return errors.ErrInvalid(KIND_QUESTION, h.GetQuestion())
151150
}
152151
for _, e := range t.questions {
153152
if e.GetQuestion() == h.GetQuestion() {
154-
return errors2.ErrAlreadyExists(KIND_QUESTION, e.GetQuestion())
153+
return errors.ErrAlreadyExists(KIND_QUESTION, e.GetQuestion())
155154
}
156155
}
157156
t.questions = append(t.questions, h)

0 commit comments

Comments
 (0)