We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38549b9 commit 28a8916Copy full SHA for 28a8916
internal/api/test/2024-12-21/helper.go
@@ -2,6 +2,7 @@ package v20241221
2
3
import (
4
openapi_types "github.com/oapi-codegen/runtime/types"
5
+
6
v20241221 "github.com/snyk/code-client-go/internal/api/test/2024-12-21/models"
7
)
8
@@ -84,7 +85,7 @@ func WithProjectId(id openapi_types.UUID) CreateTestOption {
84
85
86
func WithTargetName(name *string) CreateTestOption {
87
return func(body *CreateTestApplicationVndAPIPlusJSONRequestBody) {
- if name == nil {
88
+ if name == nil || len(*name) == 0 {
89
return
90
}
91
out := ensureOutput(body)
0 commit comments