Skip to content

Commit

Permalink
fix: solve IDE0040 and IDE0044
Browse files Browse the repository at this point in the history
  • Loading branch information
gintsk authored Feb 13, 2024
1 parent cf88b56 commit 1c16241
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MimeUtility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ public static class MimeUtility
/// </summary>
public const string UnknownMimeType = "application/octet-stream";

static Lazy<ReadOnlyDictionary<string, string>> _lazyDictExtensions = new Lazy<ReadOnlyDictionary<string, string>>(
private static readonly Lazy<ReadOnlyDictionary<string, string>> _lazyDictExtensions = new Lazy<ReadOnlyDictionary<string, string>>(
() => new ReadOnlyDictionary<string, string>(KnownMimeTypes.ALL_EXTS.Value.ToDictionary(e => e, e => KnownMimeTypes.LookupType(e)))
);

static Lazy<ReadOnlyDictionary<string, string[]>> _lazyDictMimeTypes = new Lazy<ReadOnlyDictionary<string, string[]>>(
private static readonly Lazy<ReadOnlyDictionary<string, string[]>> _lazyDictMimeTypes = new Lazy<ReadOnlyDictionary<string, string[]>>(
() => new ReadOnlyDictionary<string, string[]>(KnownMimeTypes.ALL_MIMETYPES.Value.Distinct().ToDictionary(e => e, e => KnownMimeTypes.LookupMimeType(e)))
);

Expand Down

0 comments on commit 1c16241

Please sign in to comment.