Skip to content

Commit 865477b

Browse files
committed
linting
1 parent 9650638 commit 865477b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

cli/errors.go

+1
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

+2
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
func cliHumanFormatError(from string, err error, opts *formatOpts) (string, bool) {
10451047
if opts == nil {
10461048
opts = &formatOpts{}

0 commit comments

Comments
 (0)