Skip to content

Commit

Permalink
Use optional chaining
Browse files Browse the repository at this point in the history
Co-authored-by: Benny Powers - עם ישראל חי! <[email protected]>
  • Loading branch information
2 people authored and jmmaranan committed Feb 14, 2024
1 parent cda4a0f commit 9290955
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/extension/window.js
Original file line number Diff line number Diff line change
Expand Up @@ -1611,7 +1611,7 @@ export class WindowManager extends GObject.Object {
let nodeWindow;
nodeWindow = this.tree.findNodeByActor(actor);

if (nodeWindow && nodeWindow.isWindow()) {
if (nodeWindow?.isWindow()) {
this.tree.removeNode(nodeWindow);
this.renderTree("window-destroy-quick", true);
this.removeFloatOverride(nodeWindow.nodeValue, true);
Expand Down

0 comments on commit 9290955

Please sign in to comment.