From b9695c01c14cffdd49dbacadbfa521e23ede3342 Mon Sep 17 00:00:00 2001 From: "A.Unger" Date: Mon, 19 Oct 2020 11:28:47 +0200 Subject: [PATCH] fix static check --- accounts/pkg/service/v0/accounts.go | 5 +---- ocis/go.mod | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/accounts/pkg/service/v0/accounts.go b/accounts/pkg/service/v0/accounts.go index b656a9dd80..b5304fafe9 100644 --- a/accounts/pkg/service/v0/accounts.go +++ b/accounts/pkg/service/v0/accounts.go @@ -174,10 +174,7 @@ func (s Service) findAccountsByQuery(ctx context.Context, query string) ([]strin var err error if query == "" { - searchResults, err = s.index.FindByPartial(&proto.Account{}, "Mail", "*") - if err != nil { - return nil, err - } + return s.index.FindByPartial(&proto.Account{}, "Mail", "*") } // TODO: more explicit queries have to be on top diff --git a/ocis/go.mod b/ocis/go.mod index d2902114ca..0d4f86000c 100644 --- a/ocis/go.mod +++ b/ocis/go.mod @@ -24,7 +24,7 @@ require ( github.com/owncloud/ocis/ocs v0.0.0-00010101000000-000000000000 github.com/owncloud/ocis/proxy v0.0.0-00010101000000-000000000000 github.com/owncloud/ocis/settings v0.0.0-20200918114005-1a0ddd2190ee - github.com/owncloud/ocis/storage v0.0.0-00010101000000-000000000000 + github.com/owncloud/ocis/storage v0.0.0-20201015120921-38358ba4d4df github.com/owncloud/ocis/store v0.0.0-20200918125107-fcca9faa81c8 github.com/owncloud/ocis/thumbnails v0.1.6 github.com/owncloud/ocis/webdav v0.0.0-00010101000000-000000000000