Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
reload(options) {
let wrappedAdapterOptions;
if (typeof options === 'object' && options !== null && options.adapterOptions) {
wrappedAdapterOptions = {
adapterOptions: options.adapterOptions,
};
}
return PromiseObject.create({
promise: this._internalModel.reload(wrappedAdapterOptions).then(() => this),
});
},