Skip to content

Commit e7b7b2a

Browse files
committed
--signoff
Signed-off-by: May Zhang <[email protected]>
1 parent e14d57d commit e7b7b2a

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Diff for: pkg/mocks/factory.go

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
package mocks
22

3-
import (
4-
"fmt"
5-
"github.com/argoproj/notifications-engine/pkg/api"
6-
)
3+
import "github.com/argoproj/notifications-engine/pkg/api"
74

85
type FakeFactory struct {
96
Api api.API
@@ -21,5 +18,5 @@ func (f *FakeFactory) GetAPIsFromNamespace(namespace string) (map[string]api.API
2118
}
2219

2320
func (f *FakeFactory) GetAPIsFromFactory(resource interface{}) (map[string]api.API, error) {
24-
return nil, fmt.Errorf("not implemented")
21+
return nil, f.Err
2522
}

0 commit comments

Comments
 (0)