Skip to content

Commit

Permalink
utils: Correctly handle the case of a null parent
Browse files Browse the repository at this point in the history
We were only guarding from an undefined this, that cannot happen
  • Loading branch information
3v1n0 committed Aug 26, 2022
1 parent 3b29c1d commit 34322e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ class CancellableChild extends Gio.Cancellable {
}

_connectToParent() {
this._connectId = this?.parent.connect(() => {
this._connectId = this.parent?.connect(() => {
this._realCancel();

if (this._disconnectIdle)
Expand Down

0 comments on commit 34322e0

Please sign in to comment.