Skip to content

Commit beb0e11

Browse files
committed
refactor: repair clippy lint
1 parent 92abf02 commit beb0e11

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/cmd/branch/create.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,8 @@ pub(super) fn dispatch(repo: &gix::Repository, matches: &clap::ArgMatches) -> Re
100100
);
101101
None
102102
}
103-
} else if let Ok(current_branch) = repo.get_current_branch() {
104-
Some(current_branch)
105103
} else {
106-
None
104+
repo.get_current_branch().ok()
107105
};
108106

109107
let (target_commit, target_name) = if let Some(parent_branch) = parent_branch.as_ref() {

0 commit comments

Comments
 (0)