Skip to content

Commit

Permalink
fix: Update validation
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasrockhu committed Jul 22, 2021
1 parent 6ab08a7 commit 53f686a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13064,7 +13064,7 @@ const verify = (filename) => __awaiter(void 0, void 0, void 0, function* () {
// Verify uploader
const uploaderSha = external_crypto_.createHash(`sha256`);
const stream = external_fs_.createReadStream(filename);
yield stream
return yield stream
.on('data', (data) => {
uploaderSha.update(data);
}).on('end', () => __awaiter(void 0, void 0, void 0, function* () {
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/validate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const verify = async (filename: string) => {
// Verify uploader
const uploaderSha = crypto.createHash(`sha256`);
const stream = fs.createReadStream(filename);
await stream
return await stream
.on('data', (data) => {
uploaderSha.update(data);
}).on('end', async () => {
Expand Down

0 comments on commit 53f686a

Please sign in to comment.