Skip to content

Commit

Permalink
fix(hukk): not require callback always when close server
Browse files Browse the repository at this point in the history
  • Loading branch information
nampdn committed Nov 22, 2018
1 parent d25feaa commit 073e7a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hukk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class Hukk {
});
}

close(callback: () => void) {
close(callback?: () => void) {
if (this.server && this.server.listening) {
this.server.close(callback);
}
Expand Down

0 comments on commit 073e7a1

Please sign in to comment.