Skip to content

Commit 91b2609

Browse files
mdimicelijpalermo
authored andcommitted
fix golangci-lint errors
1 parent 9cec9dc commit 91b2609

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

application/logger.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,10 @@ func (l *Logger) Prompt(message string) bool {
7676
l.newline = true
7777

7878
var proceed string
79-
fmt.Fscanln(l.reader, &proceed)
79+
_, err := fmt.Fscanln(l.reader, &proceed)
80+
if err != nil {
81+
return false
82+
}
8083

8184
proceed = strings.ToLower(proceed)
8285
if proceed == "yes" || proceed == "y" {

terraform/executor.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ func (e Executor) runTFCommandWithEnvs(args, envs []string) error {
156156
if e.debug {
157157
return err
158158
}
159-
return fmt.Errorf(redactedError)
159+
return fmt.Errorf("%s", redactedError)
160160
}
161161

162162
return nil
@@ -224,7 +224,7 @@ func (e Executor) Validate(credentials map[string]string) error {
224224
if e.debug {
225225
return err
226226
}
227-
return fmt.Errorf(redactedError)
227+
return fmt.Errorf("%s", redactedError)
228228
}
229229

230230
return nil

0 commit comments

Comments
 (0)