Skip to content

Commit 315ed1c

Browse files
Scott DoverScott Dover
authored andcommitted
fix: type errors
Signed-off-by: Scott Dover <[email protected]>
1 parent 2401d29 commit 315ed1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/src/connection/rest/SASContentAdapter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ class SASContentAdapter implements ContentAdapter {
562562
}
563563

564564
const success = await this.moveItem(item, recycleBinUri);
565-
return recycleItemResponse(success);
565+
return recycleItemResponse(!!success);
566566

567567
function recycleItemResponse(success: boolean) {
568568
if (!success) {
@@ -581,7 +581,7 @@ class SASContentAdapter implements ContentAdapter {
581581
if (!previousParentUri) {
582582
return false;
583583
}
584-
return await this.moveItem(item, previousParentUri);
584+
return !!(await this.moveItem(item, previousParentUri));
585585
}
586586

587587
private async updateAccessToken(): Promise<void> {

0 commit comments

Comments
 (0)