Minor code simplification.
This commit is contained in:
parent
0894114aac
commit
13b7b72865
@ -71,8 +71,9 @@ class $WebServer extends $EventEmitter
|
||||
|
||||
errorHandler = (error) ->
|
||||
# `address()` can only be used once listening.
|
||||
address = do ->
|
||||
return socket if socket?
|
||||
address = if socket?
|
||||
socket
|
||||
else
|
||||
"#{host}:#{port}"
|
||||
|
||||
# Prints a (hopefully) helpful message if the server could not
|
||||
|
Loading…
Reference in New Issue
Block a user