Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
createInstance() {
logger.debug('create Rest instance');
if (this._options) {
this._api = new RestClient(this._options);
return true;
} else {
return Promise.reject('API not configured');
}
}