The analyzer has detected code that will never be executed. This may indicate a logic error in the code.
The example:
const result = []
for (let i = 0; i < foo; i++) {
const entry = handle(i)
continue
result.push(entry)
}
The continue statement passes control to the next iteration of the for loop, making the code after the statement unreachable. This is likely the result of a logic error or an unintended change made during debugging.
The fixed code:
const result = []
for (let i = 0; i < foo; i++) {
const entry = handle(i)
result.push(entry)
}
This diagnostic rule is classified as:
Was this page helpful?
Your message has been sent. We will email you at
If you do not see the email in your inbox, please check if it is filtered to one of the following folders: