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; } }