Skip to content

Refactor useless .ContinueWith in Api to direct call #108

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

Closed
bednar opened this issue Jul 3, 2020 · 0 comments · Fixed by #110
Closed

Refactor useless .ContinueWith in Api to direct call #108

bednar opened this issue Jul 3, 2020 · 0 comments · Fixed by #110
Assignees
Labels
bug Something isn't working
Milestone

Comments

@bednar
Copy link
Contributor

bednar commented Jul 3, 2020

await _service.GetLabelsAsync().ContinueWith(t => t.Result.Labels);

could be refactored to

(await _service.GetLabelsAsync()).Labels;

Screenshot 2020-07-03 at 08 23 52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants