From 5b45655fc0368ce285013c912919f89917afd0ec Mon Sep 17 00:00:00 2001 From: Benedikt Kulmann Date: Mon, 19 Oct 2020 16:48:33 +0200 Subject: [PATCH] Get rid of error in function signature --- glauth/pkg/command/server.go | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/glauth/pkg/command/server.go b/glauth/pkg/command/server.go index 9328938d9..6c15b2670 100644 --- a/glauth/pkg/command/server.go +++ b/glauth/pkg/command/server.go @@ -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) }