Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4066e2c

Browse files
committed
linting
1 parent865477b commit4066e2c

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

‎cli/errors.go‎

Lines changed: 0 additions & 1 deletion
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‎

Lines changed: 2 additions & 0 deletions
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
functraceError(errerror)string {
11871189
ifuw,ok:=err.(interface{Unwrap()error });ok {
11881190
a,b:=err.Error(),uw.Unwrap().Error()

‎codersdk/deployment.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2065,7 +2065,7 @@ func (c *Client) BuildInfo(ctx context.Context) (BuildInfoResponse, error) {
20652065
}
20662066
deferres.Body.Close()
20672067

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp