mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
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:
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user