Skip to content

Commit 9d0a95c

Browse files
committed
chore(hash-stream-node): remove redundant type definition
1 parent 98a2f90 commit 9d0a95c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/hash-stream-node/src/fileStreamHasher.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@ import { Readable } from "stream";
44

55
import { HashCalculator } from "./HashCalculator";
66

7-
export const fileStreamHasher: StreamHasher<Readable> = (
8-
hashCtor: HashConstructor,
9-
fileStream: Readable
10-
): Promise<Uint8Array> =>
7+
export const fileStreamHasher: StreamHasher<Readable> = (hashCtor: HashConstructor, fileStream: Readable) =>
118
new Promise((resolve, reject) => {
129
if (!isReadStream(fileStream)) {
1310
reject(new Error("Unable to calculate hash for non-file streams."));

0 commit comments

Comments
 (0)