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

Remove redundant async/await statements for API methods #9

Closed
martin211 opened this issue Oct 18, 2022 · 1 comment
Closed

Remove redundant async/await statements for API methods #9

martin211 opened this issue Oct 18, 2022 · 1 comment

Comments

@martin211
Copy link
Contributor

At \src\Yandex.Music.Api\API\Y*API.cs classes has wrong definition for async methotds.

public async Task<YResponse<YLibraryTracks>> GetLikedTracksAsync(AuthStorage storage) { return await ...; }
No need async/await here. You method already returns a task, async/await must be in the calling code.

@K1llMan
Copy link
Owner

K1llMan commented Oct 19, 2022

Fixed. Thx.

@K1llMan K1llMan closed this as completed Oct 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

No branches or pull requests

2 participants