Skip to content

Commit

Permalink
fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
simlarsen committed Oct 26, 2023
1 parent 2d9b995 commit 4d5a49f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions Probe/Utils/Monitors/MonitorTypes/ApiMonitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,6 @@ export default class ApiMonitor {
return await this.ping(url, options);
}



if (!options.isOnlineCheckRequest) {
if (!(await ApiMonitor.isProbeOnline())) {
logger.error(
Expand All @@ -213,8 +211,8 @@ export default class ApiMonitor {
failureCause: (err as any).toString(),
};

// check if timeout exceeded and if yes, return null
if (
// check if timeout exceeded and if yes, return null
if (
(err as any).toString().includes('timeout') &&
(err as any).toString().includes('exceeded')
) {
Expand Down
2 changes: 1 addition & 1 deletion Probe/Utils/Monitors/MonitorTypes/PingMonitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export default class PingMonitor {
logger.info(
`Ping Monitor - Timeout exceeded ${pingOptions.monitorId?.toString()} ${host.toString()} - ERROR: ${err}`
);

return {
isOnline: false,
failureCause: 'Timeout exceeded',
Expand Down

0 comments on commit 4d5a49f

Please sign in to comment.