View Categories

Avoid Unnecessary Code Blocks

Table of Contents
Impact Area

Manageability

Severity

Medium

Affected Element

Lightning

Rule ID #

SF-0065

Impact #

Empty code blocks are often used in other languages to introduce a new variable scope. Blocks do not behave like this in JavaScript, and using them can be misleading.

Remediation #

Consider removing this unnecessary block.

Time to fix

30 min

Powered by BetterDocs