Skip to content

Commit

Permalink
suggestions from review
Browse files Browse the repository at this point in the history
  • Loading branch information
crobibero committed Nov 19, 2021
1 parent 6398dcb commit f5f5aa7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Jellyfin.Plugin.Bookshelf/Providers/ComicBookImageProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@ public ComicBookImageProvider(ILogger<ComicBookImageProvider> logger)
public string Name => "Comic Book Zip Archive Cover Extractor";

/// <inheritdoc />
public async Task<DynamicImageResponse> GetImage(BaseItem item, ImageType type, CancellationToken cancellationToken)
public Task<DynamicImageResponse> GetImage(BaseItem item, ImageType type, CancellationToken cancellationToken)
{
// Check if the file is a .cbz file
var extension = Path.GetExtension(item.Path);
if (string.Equals(extension, CbzFileExtension, StringComparison.OrdinalIgnoreCase))
{
return await LoadCover(item).ConfigureAwait(false);
return LoadCover(item);
}
else
{
return new DynamicImageResponse { HasImage = false };
return Task.FromResult(new DynamicImageResponse { HasImage = false });
}
}

Expand Down

0 comments on commit f5f5aa7

Please sign in to comment.