Skip to content

Commit

Permalink
fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
BYK committed Dec 4, 2024
1 parent db7230b commit 084f953
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export async function calculateChecksum(
const hash = createHash(algorithm);

return new Promise<string>((resolve, reject) => {
stream.on('data', data => hash.update(data, 'utf8'));
stream.on('data', data => hash.update(data));
stream.on('end', () => resolve(formatDigest(hash, format)));
stream.on('error', reject);
});
Expand Down

0 comments on commit 084f953

Please sign in to comment.