Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return this.getObject().then(obj => {
this.ciceroContext.ciceroClipboard = obj;
const label = Models.typePlusTitle(obj);
return this.returnResult('', Usermessages.clipboardContents(label));
});
}
private show(): Promise {
if (this.ciceroContext.ciceroClipboard) {
const label = Models.typePlusTitle(this.ciceroContext.ciceroClipboard);
return this.returnResult('', Usermessages.clipboardContents(label));
} else {
return this.returnResult('', Usermessages.clipboardEmpty);
}
}