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

Commit865477b

Browse files
committed
linting
1 parent9650638 commit865477b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

‎cli/errors.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ func (RootCmd) errorExample() *clibase.Cmd {
4444
//nolint:errorlint,forcetypeassert
4545
apiError.(*codersdk.Error).Helper="Have you tried turning it off and on again?"
4646

47+
//nolint:errorlint,forcetypeassert
4748
apiErrorNoHelper:=apiError.(*codersdk.Error)
4849
apiErrorNoHelper.Helper=""
4950

‎cli/root.go‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,6 +1041,8 @@ const indent = " "
10411041
// go run main.go exp example-error cmd
10421042
// go run main.go exp example-error multi-error
10431043
// go run main.go exp example-error validation
1044+
//
1045+
//nolint:errorlint
10441046
funccliHumanFormatError(fromstring,errerror,opts*formatOpts) (string,bool) {
10451047
ifopts==nil {
10461048
opts=&formatOpts{}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp