Update condition syntax based on PR reviews

This commit is contained in:
Beto Muniz 2021-04-11 14:30:49 -03:00
parent a8c35683a6
commit 455b7fdb0c

View File

@ -39,13 +39,12 @@ class ClipboardActionDefault {
container: this.container, container: this.container,
}); });
} else if (this.target) { } else if (this.target) {
if (this.action === 'cut') { this.selectedText =
this.selectedText = ClipboardActionCut(this.target); this.action === 'cut'
} else if (this.action === 'copy') { ? ClipboardActionCut(this.target)
this.selectedText = ClipboardActionCopy(this.target, { : ClipboardActionCopy(this.target, {
container: this.container, container: this.container,
}); });
}
} }
this.handleResult(Boolean(this.selectedText)); this.handleResult(Boolean(this.selectedText));