aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/helpers.ts8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/helpers.ts b/src/helpers.ts
index f302ac46..e451eaab 100644
--- a/src/helpers.ts
+++ b/src/helpers.ts
@@ -417,11 +417,9 @@ export class Helpers {
return o || [];
}
- // TODO ST-DDT 2022-02-06: This default will never be taken!?
- o = o || (['a', 'b', 'c'] as unknown as T[]);
- for (let x: T, j: number, i = o.length - 1; i > 0; --i) {
- j = this.faker.datatype.number(i);
- x = o[i];
+ for (let i = o.length - 1; i > 0; --i) {
+ const j = this.faker.datatype.number(i);
+ const x = o[i];
o[i] = o[j];
o[j] = x;
}