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 Jul 8, 2022
1 parent 7ab466d commit 32cfe81
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 @@ -564,7 +564,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 32cfe81

Please sign in to comment.