Commit 2d845e7f authored by Isabella Scalzi's avatar Isabella Scalzi Committed by Commit Bot

[quickview] Fix promise in |canDeleteEntry_| from CL:2040502

No-try: true
No-presubmit: true
Test: No change in behavior, no new tests.
Bug: 803259
Change-Id: Ifcb8ad66dc70aa94e7dd1d8e3bd0085924fd094a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2041718
Commit-Queue: Noel Gordon <noel@chromium.org>
Reviewed-by: default avatarNoel Gordon <noel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#739267}
parent 957e91a0
......@@ -311,7 +311,7 @@ class QuickViewController {
*/
canDeleteEntry_(entry) {
const deleteCommand = CommandHandler.getCommand('delete');
return new Promise(
return Promise.resolve(
deleteCommand.canDeleteEntries([entry], this.fileManager_));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment