Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const wouldReturn = this.inherits.substring(
this.inherits.indexOf(".") + 1,
this.inherits.length - this.name.length - 1
);
const shouldReturn = this.memberof.substring(
this.memberof.indexOf(".") + 1
);
this.returns.forEach(
value => value.type && value.type.names && (value.type.names = value.type.names.map(
name => name === wouldReturn ? shouldReturn : name
))
);
}
});
return publish(data, opts);
}
};