src/types/files/fileChecksums.ts
Function hashStream
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static async hashStream(stream: Stream, checksumBitmask: number): Promise<ChecksumProps> {
// Not calculating any checksums, do nothing
if (!checksumBitmask) {
// WARN(cemmer): this may leave the stream un-drained and therefore some file handles open!
return {};