Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
getCopyrightCoverageData(): Promise {
if (this.m_cachedCopyrightResponse !== undefined) {
return this.m_cachedCopyrightResponse;
}
this.m_cachedCopyrightResponse = new TransferManager()
.downloadJson(this.m_fetchURL)
.then(json => json[this.m_baseScheme])
.catch(error => {
this.logger.error(error);
return [];
});
return this.m_cachedCopyrightResponse;
}
}