Inspectopedia
 
2024.3

Redundant braces around arrow function body

Info
Code Style
New
Last modified: 03 December 2024

Reports an arrow function whose body only consists of braces and exactly one statement. Suggests converting to concise syntax without braces.

After the quick-fix is applied, the code fragment looks as follows: