Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

delete unused parameter #2809

Merged
merged 1 commit into from Jan 21, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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