Apply suggestions from code review

pull/3086/head
Claus Vium 4 years ago committed by GitHub
parent dfbe4413ff
commit 38185f8326
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -154,7 +154,7 @@ namespace MediaBrowser.Providers.Subtitles
{
var response = await GetRemoteSubtitles(subtitleId, cancellationToken).ConfigureAwait(false);
await TrySaveSubtitle(video, libraryOptions, response);
await TrySaveSubtitle(video, libraryOptions, response).ConfigureAwait(false);
}
catch (RateLimitExceededException)
{
@ -174,10 +174,10 @@ namespace MediaBrowser.Providers.Subtitles
}
/// <inheritdoc />
public async Task UploadSubtitle(Video video, SubtitleResponse response)
public Task UploadSubtitle(Video video, SubtitleResponse response)
{
var libraryOptions = BaseItem.LibraryManager.GetLibraryOptions(video);
await TrySaveSubtitle(video, libraryOptions, response).ConfigureAwait(false);
return TrySaveSubtitle(video, libraryOptions, response);
}
private async Task TrySaveSubtitle(

Loading…
Cancel
Save