We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ccf31c0 commit afaa200Copy full SHA for afaa200
1 file changed
apps/cli/src/handlers/init.ts
@@ -61,8 +61,8 @@ function collapseTilde(path: string): string {
61
return path;
62
}
63
64
-function validatePath(value: string): string | undefined {
65
- if (!value.trim()) {
+function validatePath(value: string | undefined): string | Error | undefined {
+ if (!value?.trim()) {
66
return "Path cannot be empty";
67
68
return undefined;
0 commit comments