Skip to content

Commit 5e89f66

Browse files
committed
remove unwanted condition
1 parent d7bb368 commit 5e89f66

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

daras_ai_v2/base.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1986,10 +1986,7 @@ def publish_and_redirect(self) -> typing.NoReturn | None:
19861986
title=self._get_default_pr_title(),
19871987
notes=self.current_pr.notes,
19881988
)
1989-
if self.workflow in PREVIEW_ROUTE_WORKFLOWS:
1990-
raise gui.RedirectException(pr.get_app_url())
1991-
else:
1992-
raise gui.RedirectException(pr.get_app_url())
1989+
raise gui.RedirectException(pr.get_app_url())
19931990

19941991
def on_submit(self, unsaved_state: dict[str, typing.Any] = None):
19951992
sr = self.create_and_validate_new_run(enable_rate_limits=True)

0 commit comments

Comments
 (0)