preflight Reject blank greet names
changes requested pi · 1 judge

Findings

01 open
should-fix 1/1 agree high confidence

F1 · No test covers the blank-name path.

src/greet.ts:2

The new throw path changes public behavior, but no test protects blank and whitespace-only names.

FixAdd a focused unit test for blank and whitespace-only names.

src/greet.ts −1  +2
2- return "Hello, " + name;
2+ if (!name.trim()) throw new Error("blank name");
3+ return `Hello, ${name}`;