mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
refactor: Prevent for-each calls
This commit is contained in:
@@ -70,6 +70,7 @@ describe('A HashMap', (): void => {
|
||||
|
||||
it('supports a forEach call.', async(): Promise<void> => {
|
||||
const result: string[] = [];
|
||||
// eslint-disable-next-line unicorn/no-array-for-each
|
||||
map.forEach((value): void => {
|
||||
result.push(value.field3);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user