Skip to content

Commit 1cdfb3e

Browse files
committed
fix type assertion lint error
1 parent 4eb0fc9 commit 1cdfb3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/pkg/validation/project.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func ValidateProject(ctx context.Context, p *print.Printer, cliVersion string, c
3333
resp, err := req.Execute()
3434
if err != nil {
3535
// Check for specific HTTP status codes
36-
if httpErr, ok := err.(*oapierror.GenericOpenAPIError); ok {
36+
if httpErr, ok := err.(*oapierror.GenericOpenAPIError); ok { //nolint:errorlint //complaining that error.As should be used to catch wrapped errors, but this error should not be wrapped
3737
switch httpErr.StatusCode {
3838
case http.StatusNotFound:
3939
// Try to get project name for better error message

0 commit comments

Comments
 (0)