Skip to content

Commit b6e9157

Browse files
committed
style: Fix formatting in code-mappings upload
1 parent 27a3b3a commit b6e9157

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
@@ -77,19 +77,18 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
7777
// the repo for the best remote (upstream > origin > first).
7878
let config = Config::current();
7979
let configured_remote = config.get_cached_vcs_remote();
80-
let remote_name =
81-
if vcs::git_repo_remote_url(&git_repo, &configured_remote).is_ok() {
82-
debug!("Using configured VCS remote: {configured_remote}");
83-
configured_remote
84-
} else if let Some(best) = vcs::find_best_remote(&git_repo)? {
85-
debug!("Configured remote '{configured_remote}' not found, using: {best}");
86-
best
87-
} else {
88-
bail!(
89-
"No remotes found in the git repository. \
80+
let remote_name = 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. \
9089
Use --repo and --default-branch to specify manually."
91-
);
92-
};
90+
);
91+
};
9392

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

0 commit comments

Comments
 (0)