Skip to content

Commit

Permalink
Merge pull request #21 from DenisaCG/fix
Browse files Browse the repository at this point in the history
Fix formatting root error
  • Loading branch information
DenisaCG authored Jul 5, 2024
2 parents e840df8 + 1183afc commit 0b82ff4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/s3contents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class Drive implements Contents.IDrive {
this._region = region!;
});
}
this.formatRoot(root).then((root: string) => {
this.formatRoot(root ?? '').then((root: string) => {
this._root = root;
});
this._registeredFileTypes = {};
Expand Down Expand Up @@ -127,7 +127,7 @@ export class Drive implements Contents.IDrive {
* The Drive root setter
*/
set root(root: string) {
this.formatRoot(root).then(root => (this._root = root));
this.formatRoot(root ?? '').then(root => (this._root = root));
}

/**
Expand Down

0 comments on commit 0b82ff4

Please sign in to comment.