Skip to content

Commit b5e3018

Browse files
minimalsmwackerow
andauthored
Update src/scripts/markdown-checker.js
Co-authored-by: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
1 parent c3e610b commit b5e3018

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/scripts/markdown-checker.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,7 @@ function processFrontmatter(path, lang) {
135135
}
136136
}
137137

138-
if (
139-
frontmatter.skill !== "beginner" &&
140-
frontmatter.skill !== "intermediate" &&
141-
frontmatter.skill !== "advanced"
142-
) {
138+
if (!["beginner", "intermediate", "advanced"].includes(frontmatter.skill)) {
143139
console.log(
144140
`Skill frontmatter '${frontmatter.skill}' must be: beginner, intermediate, or advanced at: ${path}:`
145141
)

0 commit comments

Comments
 (0)