typing cleanup

This commit is contained in:
Eugene Pankov
2021-07-14 00:03:05 +02:00
parent e245629c5a
commit 57a198b082
16 changed files with 27 additions and 23 deletions

View File

@@ -471,7 +471,7 @@ export class SSHSession extends BaseSession {
this.logger.info(stripAnsi(msg))
}
async handleAuth (methodsLeft?: string[]): Promise<any> {
async handleAuth (methodsLeft?: string[] | null): Promise<any> {
this.activePrivateKey = null
while (true) {

View File

@@ -146,7 +146,7 @@ export class SSHService {
callback(await session.handleAuth(methodsLeft))
})
},
} as any)
})
} catch (e) {
this.notifications.error(e.message)
throw e