Skip to content

Commit 5e72ab3

Browse files
authored
Apply suggestions from code review
Signed-off-by: Athan <[email protected]>
1 parent 0f60875 commit 5e72ab3

File tree

1 file changed

+3
-3
lines changed
  • lib/node_modules/@stdlib/_tools/remark/plugins/remark-lint-expected-html-sections/lib

1 file changed

+3
-3
lines changed

lib/node_modules/@stdlib/_tools/remark/plugins/remark-lint-expected-html-sections/lib/linter.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,14 @@ function factory( options ) {
9999
}
100100

101101
if ( missingRoot.length > 0 ) {
102-
msg = 'Missing required root-level sections: `' + missingRoot.join( '`, `' ) + '`. Required sections are: `' + requiredRootSections.join('`, `') + '`. missing-required-sections';
102+
msg = 'Missing required root-level sections: `' + missingRoot.join( '`, `' ) + '`. Required sections are: `' + requiredRootSections.join( '`, `' ) + '`. missing-required-sections';
103103
debug( msg );
104104
file.message( msg, tree );
105105
}
106106

107107
// If 'c' section exists, check its requirements:
108108
if ( sectionsFound.root.c ) {
109-
requiredCSections = (schema.c) ? (schema.c.required || []) : [];
109+
requiredCSections = ( schema.c ) ? ( schema.c.required || [] ) : [];
110110

111111
// Check for missing required C sections:
112112
missingC = [];
@@ -117,7 +117,7 @@ function factory( options ) {
117117
}
118118

119119
if ( missingC.length > 0 ) {
120-
msg = 'Missing required sections in "c" section: `' + missingC.join('`, `') + '`. Required C sections are: `' + requiredCSections.join('`, `') + '`. missing-required-c-sections';
120+
msg = 'Missing required sections in "c" section: `' + missingC.join( '`, `' ) + '`. Required C sections are: `' + requiredCSections.join( '`, `' ) + '`. missing-required-c-sections';
121121
debug( msg );
122122
file.message( msg, sectionsFound.root.c.node );
123123
}

0 commit comments

Comments
 (0)