Skip to content

Commit

Permalink
Oops
Browse files Browse the repository at this point in the history
  • Loading branch information
AlonNavon committed Nov 4, 2024
1 parent 5630954 commit f859e92
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions workspaces/arborist/lib/edge.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,6 @@ class Edge {
} else {
this.#error = 'MISSING'
}
} else if (this.peer && this.#from === this.#to.parent && !this.#from.isTop) {
} else if (this.peer && this.#from === this.#to.parent && !this.#from?.isTop) {
this.#error = 'PEER LOCAL'
} else if (!this.satisfiedBy(this.#to)) {
Expand All @@ -289,7 +288,6 @@ class Edge {
let needToUpdateOverrideSet = false
let newOverrideSet
let oldOverrideSet
if (this.#from.overrides) {
if (this.#from?.overrides) {
newOverrideSet = this.#from.overrides.getEdgeRule(this)
if (newOverrideSet && !newOverrideSet.isEqual(this.overrides)) {
Expand All @@ -302,7 +300,6 @@ class Edge {
} else {
delete this.overrides
}
const newTo = this.#from.resolve(this.#name)
const newTo = this.#from?.resolve(this.#name)
if (newTo !== this.#to) {
if (this.#to) {
Expand All @@ -328,7 +325,6 @@ class Edge {
if (this.#to) {
this.#to.deleteEdgeIn(this)
}
this.#from.edgesOut.delete(this.#name)
this.#from?.edgesOut.delete(this.#name)
this.#to = null
this.#error = 'DETACHED'
Expand Down

0 comments on commit f859e92

Please sign in to comment.