refactor: Prevent for-each calls

This commit is contained in:
Joachim Van Herwegen
2023-10-30 16:58:39 +01:00
parent 20d4a0c3af
commit c9e4c7041c
7 changed files with 13 additions and 9 deletions

View File

@@ -156,6 +156,7 @@ describe('A WrappedSetMultiMap', (): void => {
it('supports a forEach call.', async(): Promise<void> => {
expect(map.set(key, new Set([ 123, 456 ]))).toBe(map);
const result: number[] = [];
// eslint-disable-next-line unicorn/no-array-for-each
map.forEach((value): void => {
result.push(value);
});