Skip to content

Commit 6fea3de

Browse files
authored
fix(cli-repl): fix lint error (#2728)
Fixes `Async arrow function has no 'await' expression` from 88ede3e.
1 parent 99d53c7 commit 6fea3de

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

packages/cli-repl/src/update-notification-manager.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,7 @@ export class UpdateNotificationManager {
8282
onInvalidMatchPattern?: (err: unknown) => void;
8383
} = {}) {
8484
this.fetch =
85-
fetch ??
86-
(async () => {
87-
throw new Error('no fetch provided');
88-
});
85+
fetch ?? (() => Promise.reject(new Error('no fetch provided')));
8986
this.onInvalidMatchPattern = onInvalidMatchPattern ?? (() => {});
9087
}
9188

0 commit comments

Comments
 (0)