Skip to content

Commit 8ed5414

Browse files
mansonakategengler
authored andcommitted
update code-comment to be less confusing
1 parent 7b874fa commit 8ed5414

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/frontmatter-linter.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ module.exports = class FrontmatterLinter {
2929
required: true,
3030
conform: function (value) {
3131
const result = value?.every((item) => teams.includes(item));
32-
// we need to warn like this because revalidator doesn't allow custom messages
32+
// we need to warn like this because revalidator doesn't allow you to use specific
33+
// context in custom messages. i.e. it will tell you that there an unmatched team
34+
// but it won't tell you which one is the offending team.
3335
if (!result) {
3436
console.warn(`Invalid team in ${value}. Available teams: ${teams}`);
3537
}

0 commit comments

Comments
 (0)