From f18bfb12040cde19b0db1a6646f1b22f3c389ff3 Mon Sep 17 00:00:00 2001 From: Aaron Powell Date: Wed, 2 Jul 2025 09:56:09 +1000 Subject: [PATCH] Potential fix for code scanning alert no. 8: Useless conditional Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- update-readme.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update-readme.js b/update-readme.js index 1dc9d74..27c314f 100755 --- a/update-readme.js +++ b/update-readme.js @@ -16,7 +16,7 @@ function extractTitle(filePath) { if (line.trim() === "---") { if (!inFrontmatter) { inFrontmatter = true; - } else if (inFrontmatter && !frontmatterEnded) { + } else if (!frontmatterEnded) { frontmatterEnded = true; } continue;