Syntactic improvments, and linting ping.js

This commit is contained in:
Alicia Sykes 2021-06-19 13:46:02 +01:00
parent 77ca662f37
commit 106103a7df
1 changed files with 66 additions and 66 deletions

View File

@ -22,7 +22,7 @@ const makeMessageText = (data) => `${data.successStatus ? '✅' : '⚠️'} `
const makeErrorMessage = (data) => `❌ Service Unavailable: ${data.hostname || 'Server'} `
+ `resulted in ${data.code || 'a fatal error'} ${data.errno ? `(${data.errno})` : ''}`;
const makeErrorMessage2 = (data) => `❌ Service Error - `
const makeErrorMessage2 = (data) => '❌ Service Error - '
+ `${data.status} - ${data.statusText}`;
/* Kicks of a HTTP request, then formats and renders results */