mirror of
https://github.com/cirruslabs/orchard.git
synced 2026-09-30 12:01:15 +02:00
Badger store: avoid code duplication by using generic methods (#369)
* Badger store: avoid code duplication by using generic methods * No need to return PT, can return just *T
This commit is contained in:
@@ -196,8 +196,8 @@ func New(opts ...Option) (*Controller, error) {
|
||||
return controller, nil
|
||||
}
|
||||
|
||||
func (controller *Controller) ServiceAccounts() ([]*v1.ServiceAccount, error) {
|
||||
var serviceAccounts []*v1.ServiceAccount
|
||||
func (controller *Controller) ServiceAccounts() ([]v1.ServiceAccount, error) {
|
||||
var serviceAccounts []v1.ServiceAccount
|
||||
var err error
|
||||
|
||||
if err := controller.store.View(func(txn storepkg.Transaction) error {
|
||||
|
||||
Reference in New Issue
Block a user