Skip to content

Commit

Permalink
fix golangci-lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mdimiceli committed Aug 23, 2024
1 parent ac76dfd commit aa141d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion application/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ func (l *Logger) Prompt(message string) bool {
l.newline = true

var proceed string
fmt.Fscanln(l.reader, &proceed)
_, err := fmt.Fscanln(l.reader, &proceed)
if err != nil {
return false
}

proceed = strings.ToLower(proceed)
if proceed == "yes" || proceed == "y" {
Expand Down
4 changes: 2 additions & 2 deletions terraform/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func (e Executor) runTFCommandWithEnvs(args, envs []string) error {
if e.debug {
return err
}
return fmt.Errorf(redactedError)
return fmt.Errorf("%s", redactedError)
}

return nil
Expand Down Expand Up @@ -224,7 +224,7 @@ func (e Executor) Validate(credentials map[string]string) error {
if e.debug {
return err
}
return fmt.Errorf(redactedError)
return fmt.Errorf("%s", redactedError)
}

return nil
Expand Down

0 comments on commit aa141d4

Please sign in to comment.