simplify syntax

This commit is contained in:
Michael Bradley, Jr 2018-09-19 21:13:06 -05:00
parent 2b816af9a8
commit e19b3b2f51
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ exports.serve = async function (ipc, host, port, ws, origin) {
const start = Date.now();
function awaitTarget() {
return new Promise((resolve, reject) => {
return new Promise(resolve => {
utils.pingEndpoint(
canonicalHost(host), port, ws ? 'ws': false, 'http', _origin, async (err) => {
if (!err || (Date.now() - start > 10000)) {