Skip to content

Commit 4066e2c

Browse files
committed
linting
1 parent 865477b commit 4066e2c

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

cli/errors.go

-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ func (RootCmd) errorExample() *clibase.Cmd {
9292
xerrors.Errorf("first error: %w", errorWithStackTrace()),
9393
xerrors.Errorf("second error: %w", errorWithStackTrace()),
9494
)
95-
9695
},
9796
},
9897

cli/root.go

+2
Original file line numberDiff line numberDiff line change
@@ -1183,6 +1183,8 @@ func formatCoderSDKError(from string, err *codersdk.Error, opts *formatOpts) str
11831183
// commands. When we pretty print errors, we lose the context in which they came.
11841184
// This function adds the context back. Unfortunately there is no easy way to get
11851185
// the prefix to: "error string: %w", so we do a bit of string manipulation.
1186+
//
1187+
//nolint:errorlint
11861188
func traceError(err error) string {
11871189
if uw, ok := err.(interface{ Unwrap() error }); ok {
11881190
a, b := err.Error(), uw.Unwrap().Error()

codersdk/deployment.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2065,7 +2065,7 @@ func (c *Client) BuildInfo(ctx context.Context) (BuildInfoResponse, error) {
20652065
}
20662066
defer res.Body.Close()
20672067

2068-
if res.StatusCode != http.StatusBadRequest || ExpectJSONMime(res) != nil {
2068+
if res.StatusCode != http.StatusOK || ExpectJSONMime(res) != nil {
20692069
return BuildInfoResponse{}, ReadBodyAsError(res)
20702070
}
20712071

0 commit comments

Comments
 (0)