diff options
Diffstat (limited to 'packages/console/core/script')
| -rwxr-xr-x | packages/console/core/script/update-models.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/packages/console/core/script/update-models.ts b/packages/console/core/script/update-models.ts index d37c6a9aa..095c4aba8 100755 --- a/packages/console/core/script/update-models.ts +++ b/packages/console/core/script/update-models.ts @@ -17,10 +17,8 @@ const oldValues = Array.from({ length: PARTS }, (_, i) => { ?.split("=") .slice(1) .join("=") - // TODO - //if (!value) throw new Error(`ZEN_MODELS${i + 1} not found`) - //return value - return value ?? "" + if (!value) throw new Error(`ZEN_MODELS${i + 1} not found`) + return value }) // store the prettified json to a temp file |
