Fix and disable new dotnet6 warnings

This commit is contained in:
Cody Robibero
2021-11-08 12:39:02 -07:00
parent 40045d2147
commit 64652b6392
13 changed files with 22 additions and 29 deletions

View File

@@ -26,7 +26,7 @@ namespace Emby.Drawing
public sealed class ImageProcessor : IImageProcessor, IDisposable
{
// Increment this when there's a change requiring caches to be invalidated
private const string Version = "3";
private const char Version = '3';
private static readonly HashSet<string> _transparentImageTypes
= new HashSet<string>(StringComparer.OrdinalIgnoreCase) { ".png", ".webp", ".gif" };