From 16ca55b81445b1ef2092415101773793b8af8085 Mon Sep 17 00:00:00 2001 From: walkon <465276914@qq.com> Date: Thu, 10 Mar 2022 10:01:38 +0800 Subject: [PATCH] Update RepeatUntilSuccess.go --- decorators/RepeatUntilSuccess.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/decorators/RepeatUntilSuccess.go b/decorators/RepeatUntilSuccess.go index 0a4a0fd..52c3c1c 100644 --- a/decorators/RepeatUntilSuccess.go +++ b/decorators/RepeatUntilSuccess.go @@ -36,9 +36,6 @@ type RepeatUntilSuccess struct { func (this *RepeatUntilSuccess) Initialize(setting *BTNodeCfg) { this.Decorator.Initialize(setting) this.maxLoop = setting.GetPropertyAsInt("maxLoop") - if this.maxLoop < 1 { - panic("maxLoop parameter in MaxTime decorator is an obligatory parameter") - } } /**