mirror of
https://github.com/coder/code-server.git
synced 2025-07-30 05:22:04 +08:00
Formatting and linting fixes
This commit is contained in:
@ -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")
|
||||
|
Reference in New Issue
Block a user