chore: Fix several style lints (#17488)
It's not comprehensive enough to start linting on `style` group, but hey, it's a start. Release Notes: - N/A
This commit is contained in:
parent
93249fc82b
commit
e6c1c51b37
361 changed files with 3530 additions and 3587 deletions
|
@ -91,7 +91,7 @@ impl BranchListDelegate {
|
|||
branch_name_trailoff_after: usize,
|
||||
cx: &AppContext,
|
||||
) -> Result<Self> {
|
||||
let project = workspace.project().read(&cx);
|
||||
let project = workspace.project().read(cx);
|
||||
let repo = project
|
||||
.get_first_worktree_root_repo(cx)
|
||||
.context("failed to get root repository for first worktree")?;
|
||||
|
@ -317,12 +317,12 @@ impl PickerDelegate for BranchListDelegate {
|
|||
let repo = project.get_first_worktree_root_repo(cx).context(
|
||||
"failed to get root repository for first worktree",
|
||||
)?;
|
||||
let status = repo.create_branch(¤t_pick);
|
||||
let status = repo.create_branch(current_pick);
|
||||
if status.is_err() {
|
||||
this.delegate.display_error_toast(format!("Failed to create branch '{current_pick}', check for conflicts or unstashed files"), cx);
|
||||
status?;
|
||||
}
|
||||
let status = repo.change_branch(¤t_pick);
|
||||
let status = repo.change_branch(current_pick);
|
||||
if status.is_err() {
|
||||
this.delegate.display_error_toast(format!("Failed to check branch '{current_pick}', check for conflicts or unstashed files"), cx);
|
||||
status?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue