Skip to content

Commit c00fa69

Browse files
committed
format
1 parent 7e581a6 commit c00fa69

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

asyncgit/src/sync/utils.rs

+5-4
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ use std::{
1414
io::Write,
1515
path::{Path, PathBuf},
1616
};
17-
1817
///
1918
#[derive(PartialEq, Eq, Debug, Clone)]
2019
pub struct Head {
@@ -49,9 +48,11 @@ pub fn repo_dir(repo_path: &RepoPath) -> Result<PathBuf> {
4948
pub fn repo_work_dir(repo_path: &RepoPath) -> Result<String> {
5049
let repo = repo(repo_path)?;
5150

52-
// TODO: Is this safe?
53-
// Allow Bare repositories
54-
if repo.is_bare() { return Ok(repo_path.gitpath().to_str().unwrap().to_string()) };
51+
// TODO: Is this safe?
52+
// Allow Bare repositories
53+
if repo.is_bare() {
54+
return Ok(repo_path.gitpath().to_str().unwrap().to_string());
55+
};
5556

5657
work_dir(&repo)?.to_str().map_or_else(
5758
|| Err(Error::Generic("invalid workdir".to_string())),

src/tabs/worktrees.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ impl WorkTreesTab {
3131
Self {
3232
visible: false,
3333
worktrees: WorkTreesComponent::new(
34-
"Hello Worktrees",
34+
"Worktree",
3535
theme,
3636
key_config.clone(),
3737
),

0 commit comments

Comments
 (0)