(chunk: Buffer, _encoding, callback)
| 95 | const hash = createHash(ARTIFACT_HASH_ALGORITHM); |
| 96 | const sink = new Writable({ |
| 97 | write(chunk: Buffer, _encoding, callback) { |
| 98 | hash.update(chunk); |
| 99 | callback(); |
| 100 | }, |
| 101 | }); |
| 102 | await pipeline(fs.createReadStream(localPath), sink).catch((err: unknown) => { |
| 103 | throw new AppError( |
no test coverage detected