Javascript error: Primitive value ... will be lost

On using PyCharm Inspect Code on a js file I get "Primitive value returned from constructor will be lost when called with 'new'" for a number of functions. Example

function ShowWaitMessage() {
    $("#DivCurrContent").html('Please wait');
    return false;
}

Right click and select 'Apply fix' and

/**
* @return {boolean}
*/

is added above the function. I'm missing something here but what was the original problem and how does the fix, which is nothing but a comment, fix anything?

TYIA

Please sign in to leave a comment.