Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin Brosse committed Apr 3, 2020
1 parent f2eaa3f commit 0bcc920
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions internal/namespaces/autocomplete/autocomplete.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,12 @@ func InstallCommandRun(ctx context.Context, argsI interface{}) (i interface{}, e
autoCompleteScript := "\n# Scaleway CLI autocomplete initialization.\n" + script.CompleteScript

// Warning
interactive.Println()
_, _ = interactive.Println()
_, _ = interactive.PrintlnWithoutIndent("To enable autocomplete we need to append to " + shellConfigurationFilePath + " the following lines:")
interactive.Println(strings.ReplaceAll(autoCompleteScript, "\n", "\n\t"))
_, _ = interactive.Println(strings.ReplaceAll(autoCompleteScript, "\n", "\n\t"))

// Early exit if user disagrees
interactive.Println()
_, _ = interactive.Println()
continueInstallation, err := interactive.PromptBoolWithConfig(&interactive.PromptBoolConfig{
Prompt: fmt.Sprintf("Do you want to proceed with these changes?"),
DefaultValue: true,
Expand Down
4 changes: 2 additions & 2 deletions internal/namespaces/init/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func initCommand() *core.Command {

// Credentials
if args.SecretKey == "" {
interactive.Println()
_, _ = interactive.Println()
args.SecretKey, err = promptCredentials()
if err != nil {
return err
Expand All @@ -161,7 +161,7 @@ func initCommand() *core.Command {

// Zone
if args.Zone == "" {
interactive.Println()
_, _ = interactive.Println()
zone, err := interactive.PromptStringWithConfig(&interactive.PromptStringConfig{
Prompt: "Select a zone",
DefaultValueDoc: "fr-par-1",
Expand Down

0 comments on commit 0bcc920

Please sign in to comment.