File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -349,7 +349,7 @@ def by(val) -> bool:
349
349
target_children = list (filter (by , self .children ))
350
350
if first :
351
351
return target_children [0 ]
352
- return return target_children
352
+ return target_children
353
353
354
354
def get_by_id (self , id ):
355
355
"""
Original file line number Diff line number Diff line change @@ -502,10 +502,9 @@ def attached_pane(self) -> t.Optional[Pane]:
502
502
:class:`Pane`
503
503
"""
504
504
for pane in self ._panes :
505
- if "pane_active" in pane :
506
- # for now pane_active is a unicode
507
- if pane .get ("pane_active" ) == "1" :
508
- return Pane (window = self , ** pane )
505
+ # for now pane_active is a unicode
506
+ if "pane_active" in pane and pane .get ("pane_active" ) == "1" :
507
+ return Pane (window = self , ** pane )
509
508
510
509
def _list_panes (self ) -> t .List [PaneDict ]:
511
510
panes = self .server ._update_panes ()._panes
You can’t perform that action at this time.
0 commit comments