Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const cleanUp = () => {
// Don't wait for finish, only log errors
closeAnonymizedProxy(anonymizedProxyUrl, true)
.catch(err => log.exception(err, 'closeAnonymizedProxy() failed.'));
};
.then(() => {
if (this.anonymizedProxyUrl) {
return closeAnonymizedProxy(this.anonymizedProxyUrl, true);
}
})
.then(() => {