From f45770fbfe14469f0d2fcd44f03a5d378172590b Mon Sep 17 00:00:00 2001 From: Caihuanyu Date: Wed, 26 Feb 2020 15:55:16 +0800 Subject: [PATCH] make codecov happy --- packages/remax/src/VNode.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/remax/src/VNode.ts b/packages/remax/src/VNode.ts index de9b2f969..ee66fb6cf 100644 --- a/packages/remax/src/VNode.ts +++ b/packages/remax/src/VNode.ts @@ -217,11 +217,8 @@ export default class VNode { }); while (stack.length > 0) { - const stackItem = stack.pop(); - - if (!stackItem) { - continue; - } + // while 循环已经保证了不会有空值 + const stackItem = stack.pop()!; const { children, currentNode } = stackItem;