Skip to content

Commit

Permalink
Change return types Promise<undefined> to Promise<void> to appease tsc.
Browse files Browse the repository at this point in the history
  • Loading branch information
brannondorsey committed Mar 7, 2019
1 parent 71e0f90 commit ef3d834
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Messenger.ts
Expand Up @@ -40,7 +40,7 @@ export class Messenger extends EventEmitter {
this.tnc = this._createTNC(config.kissPort, config.kissBaud)
}

openTNC(): Promise<undefined> {
openTNC(): Promise<void> {
return new Promise((resolve, reject) => {
if (this.tnc == null) {
this.tnc = this._createTNC(this.config.kissPort, this.config.kissBaud)
Expand Down Expand Up @@ -93,7 +93,7 @@ export class Messenger extends EventEmitter {
})
}

private async _onAX25DataRecieved(data: any): Promise<undefined> {
private async _onAX25DataRecieved(data: any): Promise<void> {

let packet: Packet
try {
Expand Down

0 comments on commit ef3d834

Please sign in to comment.