From f91537ed9869af7cd8407b9c6899819b7b090d28 Mon Sep 17 00:00:00 2001 From: Aurelien Lourot Date: Mon, 20 Nov 2023 11:36:44 +0100 Subject: [PATCH] fix: remove wrong assertion --- vike/shared/assertDataHookReturn.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/vike/shared/assertDataHookReturn.ts b/vike/shared/assertDataHookReturn.ts index fe8404dada2..085c4feae3e 100644 --- a/vike/shared/assertDataHookReturn.ts +++ b/vike/shared/assertDataHookReturn.ts @@ -1,7 +1,6 @@ export { assertDataHookReturn } import { assertUsage, isPlainObject } from './utils.js' -import { assertHookReturnedObject } from './assertHookReturnedObject.js' import pc from '@brillout/picocolors' function assertDataHookReturn( @@ -16,5 +15,4 @@ function assertDataHookReturn( isPlainObject(hookReturnValue), `${errPrefix} should return a plain JavaScript object, ${pc.cyan('undefined')}, or ${pc.cyan('null')}` ) - assertHookReturnedObject(hookReturnValue, [] as const, errPrefix) }