Skip to content

Commit 858cd70

Browse files
committed
Update name
1 parent 368aacb commit 858cd70

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

command/pr.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ func prMerge(cmd *cobra.Command, args []string) error {
569569
}
570570
}
571571

572-
localBranchExists := git.DoesLocalBranchExist(pr.HeadRefName)
572+
localBranchExists := git.HasLocalBranch(pr.HeadRefName)
573573
if localBranchExists {
574574
err = git.DeleteLocalBranch(pr.HeadRefName)
575575
if err != nil {

git/git.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ func DeleteRemoteBranch(branch string) error {
215215
return err
216216
}
217217

218-
func DoesLocalBranchExist(branch string) bool {
218+
func HasLocalBranch(branch string) bool {
219219
configCmd := GitCommand("rev-parse", "--verify", "refs/heads/"+branch)
220220
_, err := run.PrepareCmd(configCmd).Output()
221221
return err == nil

0 commit comments

Comments
 (0)