From b862724e6a6ad39d412f5ee1255ab752b124e52e Mon Sep 17 00:00:00 2001 From: nicktrn <55853254+nicktrn@users.noreply.github.com> Date: Tue, 19 Mar 2024 15:02:22 +0000 Subject: [PATCH] fix error type assertion --- apps/kubernetes-provider/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/kubernetes-provider/src/index.ts b/apps/kubernetes-provider/src/index.ts index 46a2dfc6f..5af16bd6b 100644 --- a/apps/kubernetes-provider/src/index.ts +++ b/apps/kubernetes-provider/src/index.ts @@ -377,7 +377,7 @@ class KubernetesTaskOperations implements TaskOperations { #throwUnlessNonNullableObject( candidate: unknown ): asserts candidate is NonNullable> { - if (typeof candidate !== "object" || candidate !== null) { + if (typeof candidate !== "object" || candidate === null) { throw candidate; } }