Skip to content

Commit 8052b50

Browse files
committed
fixup: commented code, long lines
Signed-off-by: Spike Curtis <spike@coder.com>
1 parent 3ae6109 commit 8052b50

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

provisioner/terraform/executor.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,6 @@ func (e executor) execParseJSON(ctx context.Context, args, env []string, v inter
7171
cmd.Stderr = stdErr
7272
err := cmd.Run()
7373
if err != nil {
74-
// if noStateRegex.MatchString(err.Error()) {
75-
// return nil, os.ErrNotExist
76-
//}
7774
errString, _ := io.ReadAll(stdErr)
7875
return xerrors.Errorf("%s: %w", errString, err)
7976
}
@@ -93,7 +90,10 @@ func (e executor) checkMinVersion(ctx context.Context) error {
9390
return err
9491
}
9592
if !v.GreaterThanOrEqual(minimumTerraformVersion) {
96-
return xerrors.Errorf("terraform version %q is too old. required >= %q", v.String(), minimumTerraformVersion.String())
93+
return xerrors.Errorf(
94+
"terraform version %q is too old. required >= %q",
95+
v.String(),
96+
minimumTerraformVersion.String())
9797
}
9898
return nil
9999
}

0 commit comments

Comments
 (0)