Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
JrMasterModelBuilder committed May 1, 2024
1 parent 65451cf commit 45464b7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions bin/gen-flash-cn.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,11 @@ async function main() {
const {size} = await stat(cached.filepath);
console.log(`Size: ${size}`);

const [sha256, sha1, md5] =
// eslint-disable-next-line no-await-in-loop
await hashFile(cached.filepath, ['sha256', 'sha1', 'md5']);
// eslint-disable-next-line no-await-in-loop
const [sha256, sha1, md5] = await hashFile(
cached.filepath,
['sha256', 'sha1', 'md5']
);
console.log(`SHA256: ${sha256}`);
console.log(`SHA1: ${sha1}`);
console.log(`MD5: ${md5}`);
Expand Down
8 changes: 5 additions & 3 deletions bin/gen-harman-air-sdk.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ async function main() {
const {size} = await stat(cached.filepath);
console.log(`Size: ${size}`);

const [sha256, sha1, md5] =
// eslint-disable-next-line no-await-in-loop
await hashFile(cached.filepath, ['sha256', 'sha1', 'md5']);
// eslint-disable-next-line no-await-in-loop
const [sha256, sha1, md5] = await hashFile(
cached.filepath,
['sha256', 'sha1', 'md5']
);
console.log(`SHA256: ${sha256}`);
console.log(`SHA1: ${sha1}`);
console.log(`MD5: ${md5}`);
Expand Down

0 comments on commit 45464b7

Please sign in to comment.