Skip to content

Commit 534b297

Browse files
Add missing boolean return for JSHINT for whether valid
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent fc23471 commit 534b297

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/js/_enqueues/vendor/codemirror/fakejshint.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,11 @@ window.JSHINT = ( () => {
134134
*
135135
* @param {string} source - JavaScript source code.
136136
* @param {SupportedJSHintOptions} [options] - Linting options.
137+
* @return {boolean} Whether the code is valid.
137138
*/
138139
function fakeJSHINT( source, options ) {
139140
parse( source, options );
141+
return errors.length === 0;
140142
}
141143

142144
/**

0 commit comments

Comments
 (0)