Skip to content

Commit

Permalink
style(ArxMap): break one liner function into a function block
Browse files Browse the repository at this point in the history
  • Loading branch information
meszaros-lajos-gyorgy committed Aug 13, 2023
1 parent 1b2060a commit d64686b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ArxMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,9 @@ export class ArxMap {

// removing root entities while also making sure the entities land in an Entities object and not in an array
this.entities = this.entities
.filter((entity) => !entity.hasScript() || !entity.script.isRoot)
.filter((entity) => {
return !entity.hasScript() || !entity.script.isRoot
})
.reduce((acc, entity) => {
acc.push(entity)
return acc
Expand Down

0 comments on commit d64686b

Please sign in to comment.