From ac36e2ba6514b8733c52fa15c248cda8a50073ea Mon Sep 17 00:00:00 2001 From: walkon <465276914@qq.com> Date: Thu, 10 Mar 2022 10:00:31 +0800 Subject: [PATCH] Update RepeatUnitilFailure.go --- decorators/RepeatUnitilFailure.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/decorators/RepeatUnitilFailure.go b/decorators/RepeatUnitilFailure.go index f2f542f..b971b82 100644 --- a/decorators/RepeatUnitilFailure.go +++ b/decorators/RepeatUnitilFailure.go @@ -36,9 +36,6 @@ type RepeatUntilFailure struct { func (this *RepeatUntilFailure) 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") - } } /**