Skip to content

Commit e098996

Browse files
committed
chore(WorkspaceBulder): Newlines, move assertion
1 parent 223adc0 commit e098996

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tmuxp/workspace/builder.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ def build(self, session: t.Optional[Session] = None, append: bool = False) -> No
276276
except Exception as e:
277277
self.session.kill_session()
278278
raise e
279+
279280
if "options" in self.session_config:
280281
for option, value in self.session_config["options"].items():
281282
self.session.set_option(option, value)
@@ -407,11 +408,11 @@ def iter_create_windows(
407408
window_shell=window_shell,
408409
environment=environment,
409410
)
411+
assert isinstance(window, Window)
410412

411413
if is_first_window_pass: # if first window, use window 1
412414
session.attached_window.kill_window()
413415

414-
assert isinstance(window, Window)
415416
if "options" in window_config and isinstance(
416417
window_config["options"], dict
417418
):

0 commit comments

Comments
 (0)