Skip to content

Commit

Permalink
fix: fmt.Errorf -> errors.New
Browse files Browse the repository at this point in the history
to make golangci-lint happy

Signed-off-by: nscuro <[email protected]>
  • Loading branch information
nscuro committed Aug 30, 2024
1 parent 7422c0c commit 9cddfb0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/gomod/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (
"bytes"
"encoding/json"
"errors"
"fmt"
"io"

"github.com/rs/zerolog"
Expand Down Expand Up @@ -82,7 +81,7 @@ func downloadInternal(logger zerolog.Logger, modules []Module) ([]ModuleDownload
//
// See https://github.com/golang/go/issues/35380
if stderrBuf.Len() != 0 {
return nil, fmt.Errorf(stderrBuf.String())
return nil, errors.New(stderrBuf.String())
}
}

Expand Down

0 comments on commit 9cddfb0

Please sign in to comment.