Skip to content

Commit

Permalink
Remove unnecessary validation.
Browse files Browse the repository at this point in the history
  • Loading branch information
iheanyi committed Aug 11, 2021
1 parent 8c15c68 commit 1869d21
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions internal/cmd/branch/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,6 @@ func CreateCmd(ch *cmdutil.Helper) *cobra.Command {
source := args[0]
branch := args[1]

// Simplest case, the names are equivalent
if source == branch {
return fmt.Errorf("a branch named '%s' already exists", branch)
}

createReq.Database = source
createReq.Name = branch
createReq.Organization = ch.Config.Organization
Expand Down

0 comments on commit 1869d21

Please sign in to comment.