Skip to content

Commit 8740871

Browse files
removed unnecessary returns
1 parent 200fa62 commit 8740871

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/views/Graph.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1161,7 +1161,6 @@ export default {
11611161
const indexSearch = cycles[cycle]
11621162
if (indexSearch.length && !this.collapseCycle.includes(cycle)) {
11631163
for (const task of indexSearch) {
1164-
if (!task.node.firstParent) { return }
11651164
const section = graphSections[task.node.firstParent.id] ??= []
11661165
section.push(`${task.name} [title=${task.name}]`)
11671166
graphSections[task.node.firstParent.id] = section
@@ -1427,7 +1426,6 @@ export default {
14271426
})
14281427
if (indexSearch) {
14291428
// ---------------REMOVE NODES BASED ON CYCLE POINT------------
1430-
if (!this.allChildrenLookUp[indexSearch.id]) { return }
14311429
for (const config of this.allChildrenLookUp[indexSearch.id]) {
14321430
if (config.name !== indexSearch.name) {
14331431
// REMOVE NODES

0 commit comments

Comments
 (0)