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:
parent
5aceeeefff
commit
f18bfb1204
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user