Skip to content

Commit 9e86954

Browse files
committed
Fix build issue
1 parent 3bc1640 commit 9e86954

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/Atc.CodingRules.Updater/EditorConfigHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ private static void UpdateFile(
190190
logger.LogInformation($"{EmojisConstants.FileUpdated} {descriptionPart} files merged");
191191

192192
var customLines = contentFileCustomParts
193-
.FirstOrDefault(x => x.Item1.Equals(CustomSectionHeaderCodeAnalyzersRulesSuffix, StringComparison.Ordinal))
193+
.Find(x => x.Item1.Equals(CustomSectionHeaderCodeAnalyzersRulesSuffix, StringComparison.Ordinal))
194194
?.Item2;
195195

196196
if (customLines is not null)

test/Atc.CodingRules.Updater.Tests/EditorConfigHelperTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ public void DotNet6_Root_NothingToUpdate2()
9898
logger.Entries
9999
.Should().HaveCount(1)
100100
.And.Subject.Should().Contain(x => x.Message.Contains("log-description-part nothing to update"));
101-
102101
}
103102

104103
[Fact]

0 commit comments

Comments
 (0)