Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
louislam committed Oct 11, 2024
1 parent 7562212 commit 8c057f4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions server/uptime-calculator.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,6 @@ class UptimeCalculator {
* @returns {Promise<UptimeCalculator>} UptimeCalculator
*/
static async getUptimeCalculator(monitorID) {
if (!monitorID) {
throw new Error("Monitor ID is required");
}

if (!UptimeCalculator.list[monitorID]) {
UptimeCalculator.list[monitorID] = new UptimeCalculator();
await UptimeCalculator.list[monitorID].init(monitorID);
Expand Down

0 comments on commit 8c057f4

Please sign in to comment.