Skip to content

Commit c311d17

Browse files
Pl217manelcecs
authored andcommitted
Remove unnecessary initialization of array value
The same thing is happening in `getOrCreate()` below
1 parent 3d42dec commit c311d17

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/domain-services/categories/category-service.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,9 @@ export class CategoryService {
6767
() => new Map<number, Category[]>()
6868
);
6969

70-
const flowVersion = catRef.versionID;
71-
if (!flowVersionMap.has(flowVersion)) {
72-
flowVersionMap.set(flowVersion, []);
73-
}
74-
7570
const categoriesPerFlowVersion = getOrCreate(
7671
flowVersionMap,
77-
flowVersion,
72+
catRef.versionID,
7873
() => []
7974
);
8075

0 commit comments

Comments
 (0)