Skip to content

Commit b9fd441

Browse files
committed
handle empty string case
1 parent 8de2362 commit b9fd441

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

codersdk/deployment.go

+3
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,9 @@ when required by your organization's security policy.`,
619619
// We have a validation function to ensure the wildcard url is correct,
620620
// so use that instead.
621621
Value: clibase.Validate(&c.WildcardAccessURL, func(value *clibase.String) error {
622+
if value.Value() == "" {
623+
return nil
624+
}
622625
_, err := appurl.CompileHostnamePattern(value.Value())
623626
return err
624627
}),

0 commit comments

Comments
 (0)