From 2e8cb8101645507c5a99b64098c342d16d43921e Mon Sep 17 00:00:00 2001 From: Dev Date: Tue, 20 Feb 2024 09:12:16 +0000 Subject: [PATCH] Format `draw()` --- project/src/utils/RandomUtil.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) => {