fix error type assertion

This commit is contained in:
nicktrn
2024-03-19 15:02:22 +00:00
parent dc11de0714
commit b862724e6a
+1 -1
View File
@@ -377,7 +377,7 @@ class KubernetesTaskOperations implements TaskOperations {
#throwUnlessNonNullableObject(
candidate: unknown
): asserts candidate is NonNullable<Record<string, unknown>> {
if (typeof candidate !== "object" || candidate !== null) {
if (typeof candidate !== "object" || candidate === null) {
throw candidate;
}
}