Apply suggestions from code review

This commit is contained in:
Claus Vium 2020-11-08 11:20:28 +01:00 committed by GitHub
parent dfbe4413ff
commit 38185f8326
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(