Get rid of error in function signature

This commit is contained in:
Benedikt Kulmann
2020-10-19 16:48:33 +02:00
parent 681e39c9f9
commit 5b45655fc0

View File

@@ -191,11 +191,7 @@ func Server(cfg *config.Config) *cli.Command {
}
}
as, gs, err := getAccountsServices()
if err != nil {
return err
}
as, gs := getAccountsServices()
server, err := glauth.Server(
glauth.AccountsService(as),
glauth.GroupsService(gs),
@@ -311,8 +307,7 @@ func Server(cfg *config.Config) *cli.Command {
}
// getAccountsServices returns an ocis-accounts service
func getAccountsServices() (accounts.AccountsService, accounts.GroupsService, error) {
func getAccountsServices() (accounts.AccountsService, accounts.GroupsService) {
return accounts.NewAccountsService("com.owncloud.api.accounts", client.DefaultClient),
accounts.NewGroupsService("com.owncloud.api.accounts", client.DefaultClient),
nil
accounts.NewGroupsService("com.owncloud.api.accounts", client.DefaultClient)
}