Skip to content

Commit 1eef3de

Browse files
committed
fix: put return type on local functions
1 parent 5b329bb commit 1eef3de

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/events/hubEventEmitter.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,20 @@ export class UnityHubInstallerEvent extends EventEmitter implements InstallerEmi
2424

2525
public get completed(): Promise<InstallerEvent[]> {
2626
return new Promise((resolve, reject) => {
27-
const onComplete = (events: InstallerEvent[]) => {
27+
const onComplete = (events: InstallerEvent[]): void => {
2828
cleanup();
2929
resolve(events);
3030
};
31-
const onError = (error: any) => {
31+
const onError = (error: any): void => {
3232
cleanup();
3333
reject(error);
3434
};
35-
const onCancel = () => {
35+
const onCancel = (): void => {
3636
cleanup();
3737
reject(new Error("Cancelled"));
3838
};
3939

40-
const cleanup = () => {
40+
const cleanup = (): void => {
4141
this.off(InstallerEventType.Completed, onComplete);
4242
this.off(InstallerEventType.Error, onError);
4343
this.off(InstallerEventType.Cancelled, onCancel);

0 commit comments

Comments
 (0)