Unexpected empty static async method 'validate'
27 }
28 }
29
30 static async validate(req, res){31 32 }33}
34
35export default ProductController
Unexpected empty static async method 'validate'
46 }
47 }
48
49 static async validate(req, res){50 51 }52
53}
54
Description
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', () => {})
function f() {}
Recommended
getUser('SwaGaLisTiQuE', () => {
// empty because <reason>
})
function f() {
// intentionally empty. <reason>
}