enforce ToState when using Duration

This commit is contained in:
Sam Lewis
2022-10-31 01:17:20 -04:00
parent b22b544437
commit 8a59770936
4 changed files with 13 additions and 9 deletions

View File

@@ -67,7 +67,7 @@ type elBuilder1 struct {
func (b elBuilder1) EntityIds(entityIds ...string) elBuilder2 {
if len(entityIds) == 0 {
log.Fatalln("must pass at least one entityId to EntityIds()")
panic("must pass at least one entityId to EntityIds()")
} else {
b.entityListener.entityIds = entityIds
}