Skip to content

Commit 802052f

Browse files
committed
style: Fix formatting in code-mappings upload
1 parent 95e8814 commit 802052f

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

src/commands/code_mappings/upload.rs

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -76,19 +76,18 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
7676
// the repo for the best remote (upstream > origin > first).
7777
let config = Config::current();
7878
let configured_remote = config.get_cached_vcs_remote();
79-
let remote_name =
80-
if vcs::git_repo_remote_url(&git_repo, &configured_remote).is_ok() {
81-
debug!("Using configured VCS remote: {configured_remote}");
82-
configured_remote
83-
} else if let Some(best) = vcs::find_best_remote(&git_repo)? {
84-
debug!("Configured remote '{configured_remote}' not found, using: {best}");
85-
best
86-
} else {
87-
bail!(
88-
"No remotes found in the git repository. \
79+
let remote_name = if vcs::git_repo_remote_url(&git_repo, &configured_remote).is_ok() {
80+
debug!("Using configured VCS remote: {configured_remote}");
81+
configured_remote
82+
} else if let Some(best) = vcs::find_best_remote(&git_repo)? {
83+
debug!("Configured remote '{configured_remote}' not found, using: {best}");
84+
best
85+
} else {
86+
bail!(
87+
"No remotes found in the git repository. \
8988
Use --repo and --default-branch to specify manually."
90-
);
91-
};
89+
);
90+
};
9291

9392
let repo_name = match explicit_repo {
9493
Some(r) => r.to_owned(),

0 commit comments

Comments
 (0)