Skip to content

Commit

Permalink
lint: Fix golangci-lint error
Browse files Browse the repository at this point in the history
This is due to the new version incorporating new go1.23 vet behavior.

Signed-off-by: Paul Mars <[email protected]>
  • Loading branch information
upils committed Aug 14, 2024
1 parent 43771d1 commit 1a32107
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/statemachine/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package statemachine
import (
"bytes"
"encoding/binary"
"errors"
"fmt"
"io/fs"
"math"
Expand Down Expand Up @@ -723,7 +724,7 @@ func execTeardownCmds(teardownCmds []*exec.Cmd, debug bool, prevErr error) (err
err = fmt.Errorf("teardown failed: %s", strings.Join(errs, "\n"))
if prevErr != nil {
errs := append([]string{prevErr.Error()}, errs...)
err = fmt.Errorf(strings.Join(errs, "\n"))
err = errors.New(strings.Join(errs, "\n"))
}
}

Expand Down

0 comments on commit 1a32107

Please sign in to comment.