Refactor comments across multiple files to improve clarity and consistency

- Updated comments in Probe/Config.ts to use block comments for proxy configuration.
- Refactored comments in PortMonitor.ts, SyntheticMonitor.ts, and OnlineCheck.ts to block comments for better readability.
- Adjusted comments in ProbeIngest/API/Monitor.ts and ProbeIngest/API/Probe.ts to block comments for clarity.
- Standardized comments in various data migration scripts to block comments for consistency.
- Modified eslint.config.js to enforce multiline comment style as an error.
This commit is contained in:
Nawaz Dhandala
2025-10-02 11:53:55 +01:00
parent 0e1c8df7ab
commit 6d5bc111ba
143 changed files with 1375 additions and 849 deletions

View File

@@ -71,8 +71,10 @@ const returnResponse: RequestHandler = async (
await Sleep.sleep(responseTime);
}
// middleware marks the probe as alive.
// so we don't need to do anything here.
/*
* middleware marks the probe as alive.
* so we don't need to do anything here.
*/
return Response.sendCustomResponse(
req,
res,

View File

@@ -51,8 +51,10 @@ router.post(
LocalCache.setNumber("TestServer", "responseTime", responseTime || 0);
LocalCache.setString("TestServer", "responseBody", responseBody || "");
// middleware marks the probe as alive.
// so we don't need to do anything here.
/*
* middleware marks the probe as alive.
* so we don't need to do anything here.
*/
return Response.sendEmptySuccessResponse(req, res);
} catch (err) {
return next(err);