File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments