Formatting and linting fixes

This commit is contained in:
Anmol Sethi
2021-01-14 10:55:19 -05:00
parent 60233d0974
commit 5c06646f58
4 changed files with 18 additions and 15 deletions

View File

@ -64,7 +64,7 @@ export class HttpServer {
public port(): number {
const addr = this.hs.address()
if (addr && typeof addr == "object") {
if (addr && typeof addr === "object") {
return addr.port
}
throw new Error("server not listening or listening on unix socket")