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>
This commit is contained in:
Aaron Powell 2025-07-02 09:56:09 +10:00 committed by GitHub
parent 5aceeeefff
commit f18bfb1204
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,7 +16,7 @@ function extractTitle(filePath) {
if (line.trim() === "---") { if (line.trim() === "---") {
if (!inFrontmatter) { if (!inFrontmatter) {
inFrontmatter = true; inFrontmatter = true;
} else if (inFrontmatter && !frontmatterEnded) { } else if (!frontmatterEnded) {
frontmatterEnded = true; frontmatterEnded = true;
} }
continue; continue;