File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 4
4
"encoding/json"
5
5
"reflect"
6
6
7
- errors2 "github.com/mandelsoft/goutils/errors"
7
+ "github.com/mandelsoft/goutils/errors"
8
8
"github.com/mandelsoft/goutils/generics"
9
- "github.com/pkg/errors"
10
9
"golang.org/x/exp/slices"
11
10
12
11
"ocm.software/ocm/api/ocm/extensions/accessmethods/options"
@@ -147,11 +146,11 @@ func (t *transferHandler) GetQuestions() []DecisionHandler {
147
146
148
147
func (t * transferHandler ) RegisterDecision (h DecisionHandler ) error {
149
148
if TransferHandlerQuestions [h .GetQuestion ()] == nil {
150
- return errors2 .ErrInvalid (KIND_QUESTION , h .GetQuestion ())
149
+ return errors .ErrInvalid (KIND_QUESTION , h .GetQuestion ())
151
150
}
152
151
for _ , e := range t .questions {
153
152
if e .GetQuestion () == h .GetQuestion () {
154
- return errors2 .ErrAlreadyExists (KIND_QUESTION , e .GetQuestion ())
153
+ return errors .ErrAlreadyExists (KIND_QUESTION , e .GetQuestion ())
155
154
}
156
155
}
157
156
t .questions = append (t .questions , h )
You can’t perform that action at this time.
0 commit comments