Skip to content

Commit 269535d

Browse files
committed
refactor: prefer arrow function
1 parent b68a55a commit 269535d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/cmd.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ const args = process.argv.slice(2);
2828
const file = args[0];
2929
const input = (file && file !== '-') ? createReadStream(file) : process.stdin;
3030

31-
input.pipe(concat(function (buf) {
31+
input.pipe(concat((buf) => {
3232
console.log(transform(buf.toString('utf8')));
3333
}));

0 commit comments

Comments
 (0)