Skip to content

Refactor useless .ContinueWith in Api to direct call #108

New issue

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

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

Already on GitHub? # 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

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

Successfully merging a pull request may close this issue.

2 participants