Skip to content

Commit

Permalink
Clean unnecessary 'new' for JSZip method
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric25 committed May 27, 2024
1 parent e3c63cf commit c0d1612
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ async function extractFileFromZip(
resultBuffer: ArrayBuffer,
path: string
): Promise<GetResultFromCompletedTaskResponse> {
const resultZip = await new JSZip().loadAsync(resultBuffer);
const resultZip = await JSZip().loadAsync(resultBuffer);
const file = resultZip.file(path);

if (!file) {
Expand Down

0 comments on commit c0d1612

Please sign in to comment.