diff --git a/src/subcommands/remote/submit.rs b/src/subcommands/remote/submit.rs index 92a182c..f77a6e5 100644 --- a/src/subcommands/remote/submit.rs +++ b/src/subcommands/remote/submit.rs @@ -34,7 +34,7 @@ impl SubmitCmd { // Perform pre-flight checks. println!("🔍 Checking for closed pull requests..."); - self.pre_flight(&gh_client, &mut ctx, &stack, &mut pulls) + self.pre_flight(&mut ctx, &stack, &mut pulls) .await?; // Submit the stack. @@ -57,7 +57,6 @@ impl SubmitCmd { /// Performs pre-flight checks before submitting the stack. async fn pre_flight( &self, - gh_client: &Octocrab, ctx: &mut StContext<'_>, stack: &[String], pulls: &mut PullRequestHandler<'_>, @@ -65,11 +64,6 @@ impl SubmitCmd { // Return early if the stack is not restacked or the current working tree is dirty. ctx.check_cleanliness(stack)?; - // Check if the current branch has an open PR. - if let Some((c, p)) = ctx.get_open_pr(gh_client).await? { - return Err(StError::PullRequestAlreadyOpen(c, p)); - } - // Check if any PRs have been closed, and offer to delete them before starting the submission process. let num_closed = ctx .delete_closed_branches(