mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-19 03:06:27 +00:00
Spread is neater.
This commit is contained in:
parent
aa4ff76581
commit
8ce9c2448f
@ -61,7 +61,7 @@ exports.checkConnectivity = ->
|
||||
# ol' port 80 HTTP should always be available :-)
|
||||
request
|
||||
.getAsync(config.heartbeatEndpoint)
|
||||
.then ([ response ]) ->
|
||||
.spread (response) ->
|
||||
return response.statusCode in [ 200, 304 ]
|
||||
.catch ->
|
||||
return false
|
||||
|
Loading…
Reference in New Issue
Block a user