Skip to content

Commit 3d22744

Browse files
authored
Leverage frozen set for extensions (#176)
1 parent ebc5156 commit 3d22744

File tree

4 files changed

+352
-343
lines changed

4 files changed

+352
-343
lines changed

src/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project>
33
<PropertyGroup>
44
<NoWarn>CS1591;CS0649</NoWarn>
5-
<Version>8.2.0</Version>
5+
<Version>8.3.0</Version>
66
<LangVersion>preview</LangVersion>
77
<AssemblyVersion>1.0.0</AssemblyVersion>
88
<Description>A collection of minimal binary files.</Description>

src/EmptyFiles/AllFiles.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,11 @@ void Append(FrozenDictionary<string, EmptyFile> files)
5656
static FrozenDictionary<string, EmptyFile> AddCategory(FrozenSet<string> extensions, Category category, string emptyDirectory)
5757
{
5858
Dictionary<string, EmptyFile> items = [];
59-
var categoryDirectory = Path.Combine(emptyDirectory, category
60-
.ToString()
61-
.ToLowerInvariant());
59+
var categoryDirectory = Path.Combine(
60+
emptyDirectory,
61+
category
62+
.ToString()
63+
.ToLowerInvariant());
6264
foreach (var extension in extensions)
6365
{
6466
var file = Path.Combine(categoryDirectory, $"empty{extension}");

0 commit comments

Comments
 (0)