1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-11-25 22:32:13 +02:00

Remove now unnecessary check for empty string

As of the previous commit, branchName can no longer be empty, so no need to
handle this.
This commit is contained in:
Stefan Haller
2025-11-15 14:48:04 +01:00
parent b3435bd59c
commit d7e733cd56
2 changed files with 0 additions and 6 deletions

View File

@@ -140,10 +140,6 @@ func (self *WorktreeHelper) NewWorktreeCheckout(base string, canCheckoutBase boo
self.c.Prompt(types.PromptOpts{
Title: self.c.Tr.NewBranchName,
HandleConfirm: func(branchName string) error {
if branchName == "" {
return errors.New(self.c.Tr.BranchNameCannotBeBlank)
}
opts.Branch = branchName
return f()