From 8630000e8ccb5244dc3e213d5b8c3bf668cde7cc Mon Sep 17 00:00:00 2001 From: Lucy Cifferello <12953208+elvece@users.noreply.github.com> Date: Tue, 15 Nov 2022 12:13:19 -0500 Subject: [PATCH] remove uneeded --- healthUtil.ts | 6 ------ 1 file changed, 6 deletions(-) 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"); -};