Skip to content

Commit 3a2ef35

Browse files
committed
update filter, include markdowns without parent _snippet folder
1 parent 49728dc commit 3a2ef35

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/tooling/docs-builder/Cli/DiffCommands.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,7 @@ public async Task<int> ValidateRedirects(string? path = null, Cancel ctx = defau
7171
.Where(c =>
7272
{
7373
var fi = fs.FileInfo.New(c.FilePath);
74-
if (fi.Extension != ".md")
75-
return false;
76-
return !fi.HasParent("_snippets");
74+
return fi.Extension is ".md" && !fi.HasParent("_snippets");
7775
})
7876
.ToArray();
7977

0 commit comments

Comments
 (0)