JavaScript

JavaScript

Made by DeepSource

Detected empty functions JS-0321

Anti-pattern
Minor

Having empty functions hurts readability, and is considered a code-smell. There's almost always a way to avoid using them. If you must use one, consider adding a comment to inform the reader of its purpose.

Bad Practice

getUser('SwaGaLisTiQuE', () => {})

Recommended

getUser('SwaGaLisTiQuE', () => {
    // empty because <reason>
})