Skip to content

Commit 98a2f90

Browse files
committed
chore(hash-node-stream): convert isReadStream to arrow function
1 parent df2907e commit 98a2f90

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,4 @@ export const fileStreamHasher: StreamHasher<Readable> = (
3434
});
3535
});
3636

37-
function isReadStream(stream: Readable): stream is ReadStream {
38-
return typeof (stream as ReadStream).path === "string";
39-
}
37+
const isReadStream = (stream: Readable): stream is ReadStream => typeof (stream as ReadStream).path === "string";

0 commit comments

Comments
 (0)