diff --git a/healthUtil.ts b/healthUtil.ts index 7b4297a..5481387 100644 --- a/healthUtil.ts +++ b/healthUtil.ts @@ -35,9 +35,3 @@ export const guardDurationAboveMinimum = ( (input.duration <= input.minimumTime) ? errorCode(60, "Starting") : null; - -export const catchError = (effects: Effects) => (e: unknown) => { - const error = (error: string) => ({ error }); - effects.error(`Health check failed: ${e}`); - return error("Error while running health check"); -};