Skip to content

Commit

Permalink
ref: Extract MayDetach wrapped calls into separate methods
Browse files Browse the repository at this point in the history
Done in preparation for #2166, to make that change's diff smaller and easier to understand.
  • Loading branch information
szokeasaurusrex committed Oct 3, 2024
1 parent 3bc9d38 commit e10ccf5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/commands/debug_files/upload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::collections::BTreeSet;
use std::str::{self, FromStr};
use std::time::Duration;

use anyhow::{bail, format_err, Result};
use anyhow::{bail, format_err, Error, Result};
use clap::{builder::PossibleValuesParser, Arg, ArgAction, ArgMatches, Command};
use console::style;
use itertools::Itertools;
Expand Down Expand Up @@ -303,6 +303,12 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
return Ok(());
}

upload_debug_symbols(matches, upload)
}

// Execute the upload
/// Executes the upload of debug symbols, possibly detaching the process.
fn upload_debug_symbols(matches: &ArgMatches, mut upload: DifUpload) -> Result<(), Error> {
// Execute the upload
let (uploaded, has_processing_errors) = upload.upload()?;

Expand Down

0 comments on commit e10ccf5

Please sign in to comment.