Skip to content

Commit

Permalink
Merge pull request #2809 from cli/deadcode
Browse files Browse the repository at this point in the history
delete unused parameter
  • Loading branch information
samcoe committed Jan 21, 2021
2 parents 948088a + 3797aa7 commit 938f6f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cmd/repo/create/create.go
Expand Up @@ -231,7 +231,7 @@ func createRun(opts *CreateOptions) error {

createLocalDirectory := opts.ConfirmSubmit
if !opts.ConfirmSubmit {
opts.ConfirmSubmit, err = confirmSubmission(input.Name, input.OwnerID, &opts.ConfirmSubmit)
opts.ConfirmSubmit, err = confirmSubmission(input.Name, input.OwnerID)
if err != nil {
return err
}
Expand Down Expand Up @@ -369,7 +369,7 @@ func interactiveRepoCreate(isDescEmpty bool, isVisibilityPassed bool, repoName s
return answers.RepoName, answers.RepoDescription, strings.ToUpper(answers.RepoVisibility), nil
}

func confirmSubmission(repoName string, repoOwner string, isConfirmFlagPassed *bool) (bool, error) {
func confirmSubmission(repoName string, repoOwner string) (bool, error) {
qs := []*survey.Question{}

promptString := ""
Expand Down

0 comments on commit 938f6f4

Please sign in to comment.