In this simplified version of my JavaScript code:
function addContent() {
var content = [];
content.append(
makeVal({
value : 1
})
); // lint message generated
}
After running a lint program, I received the following message:
unexpected end of line; it is ambiguous whether these lines are part of the same statement
The ambiguity arises on line 7. However, combining lines 6 and 7 resolves this issue.
I'm puzzled by where this uncertainty lies. To me, it's clear that the parentheses on line 7 are closing the append() method call.