From 881843a784026f34e9f0d487edc80415648f420a Mon Sep 17 00:00:00 2001 From: henninggross Date: Thu, 14 Oct 2021 08:23:01 +0200 Subject: [PATCH] removed unneeded conditions --- src/compiler/compile/nodes/Animation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/compile/nodes/Animation.ts b/src/compiler/compile/nodes/Animation.ts index 98239d3c2b..5559e8ac38 100644 --- a/src/compiler/compile/nodes/Animation.ts +++ b/src/compiler/compile/nodes/Animation.ts @@ -32,7 +32,7 @@ export default class Animation extends Node { return; } - if (block && block.type === 'EachBlock' && !block.key) { + if (!block.key) { component.error(this, compiler_errors.invalid_animation_key); return; }