Skip to content

Commit

Permalink
chore: minor adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmouallem committed Sep 16, 2024
1 parent ba1d05f commit 56d97b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions lib/resources/storage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,11 @@ class Storage {
);
}

delete(fileSystemId, queryParams = '') {
queryParams = new URLSearchParams(queryParams).toString();
delete(fileSystemId) {
const headers = this.LatitudeSh._headers;
return this.LatitudeSh._delete(
`/storage/filesystems/${fileSystemId}`,
headers,
queryParams
headers
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/resources/storage/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@ describe('Storage', () => {
return { body: { success: true } };
});
LatitudeShApi.Storage.delete(fileSystemId);
await expect(LatitudeSh._delete).toHaveBeenCalledWith(path, headers, '');
await expect(LatitudeSh._delete).toHaveBeenCalledWith(path, headers);
});
});

0 comments on commit 56d97b5

Please sign in to comment.