Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simplify gateway client usage #3443

Merged
merged 1 commit into from
Nov 10, 2022
Merged

Conversation

butonic
Copy link
Contributor

@butonic butonic commented Nov 10, 2022

Since ocdav only fetches a gateway client once on startup we no longer need to check the error case whenever we call getClient() and can actually use the client of the service. Deleting all these unused error checks brings ocdav coverage from 9.8% to 10.1%

part of owncloud/ocis#5022

@butonic butonic requested review from a team, labkode and ishank011 as code owners November 10, 2022 10:55
@update-docs
Copy link

update-docs bot commented Nov 10, 2022

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
@butonic butonic self-assigned this Nov 10, 2022
Comment on lines -325 to -328
func (s *svc) getClient() (gateway.GatewayAPIClient, error) {
return s.gwClient, nil
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we never returned an error ... so getting rid of this

@butonic butonic merged commit 32d6aee into cs3org:edge Nov 10, 2022
@butonic butonic deleted the ocdav-use-gwc-directly branch November 10, 2022 11:32
@kobergj kobergj mentioned this pull request Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants