diff --git a/project/src/utils/RandomUtil.ts b/project/src/utils/RandomUtil.ts index 0937568c..f200003b 100644 --- a/project/src/utils/RandomUtil.ts +++ b/project/src/utils/RandomUtil.ts @@ -136,7 +136,10 @@ export class ProbabilityObjectArray extends Array = []): K[] { - if (this.length === 0) return []; + if (this.length === 0) + { + return []; + } const { probArray, keyArray } = this.reduce((acc, x) => {