somratpro commited on
Commit
03cf867
·
1 Parent(s): acd4f9c

refactor: remove redundant isDashboardRoute check from health check path validation

Browse files
Files changed (1) hide show
  1. health-server.js +1 -2
health-server.js CHANGED
@@ -57,8 +57,7 @@ function isLocalRoute(pathname) {
57
  pathname === "/uptimerobot/setup" ||
58
  pathname === DASHBOARD_HEALTH_PATH ||
59
  pathname === DASHBOARD_STATUS_PATH ||
60
- pathname === DASHBOARD_UPTIMEROBOT_PATH ||
61
- isDashboardRoute(pathname)
62
  );
63
  }
64
 
 
57
  pathname === "/uptimerobot/setup" ||
58
  pathname === DASHBOARD_HEALTH_PATH ||
59
  pathname === DASHBOARD_STATUS_PATH ||
60
+ pathname === DASHBOARD_UPTIMEROBOT_PATH
 
61
  );
62
  }
63