81 VulnerabilityType.create({
82 locale: d.locale,
83 name: d.vulnType,
84 }).catch(e => {}); 85 }
86 if (d.description) details.description = d.description;
87 if (d.observation) details.observation = d.observation;
66 vuln.remediationComplexity = req.body[i].remediationComplexity;
67 if (req.body[i].category) {
68 vuln.category = req.body[i].category;
69 VulnerabilityCategory.create({ name: vuln.category }).catch(e => {}); 70 }
71 vuln.details = [];
72 req.body[i].details.forEach(d => {
1var expressions = require('angular-expressions');
2
3// Apply all customs functions
4function apply(data) {} 5exports.apply = apply;
6
7// *** Custom modifications of audit data for usage in word template
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.
getUser('SwaGaLisTiQuE', () => {})
function f() {}
getUser('SwaGaLisTiQuE', () => {
// empty because <reason>
})
function f() {
// intentionally empty. <reason>
}