Skip to content

Commit 8e7710d

Browse files
committed
fix: lint
1 parent f7e6a83 commit 8e7710d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

core/common-util/src/StreamUtil.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,15 @@ export class StreamUtil {
9191
return;
9292
}
9393

94-
const handleError = (error: Error) => {
95-
stream.removeListener('finish', handleFinish);
96-
reject(error);
97-
};
98-
99-
const handleFinish = () => {
94+
function handleFinish() {
10095
stream.removeListener('error', handleError);
10196
resolve();
102-
};
97+
}
98+
99+
function handleError(error: Error) {
100+
stream.removeListener('finish', handleFinish);
101+
reject(error);
102+
}
103103

104104
stream.once('error', handleError);
105105
stream.once('finish', handleFinish);

0 commit comments

Comments
 (0)