Commit 5b3ee80
committed
style: add ValidateNotNullOrEmpty to build.ps1 -Task parameter
Matches the canonical template (PowerShellModuleTemplate#23). Without
the validator, `./build.ps1 -Task ''` and `./build.ps1 -Task $null` slip
past parameter binding and produce confusing downstream errors from
psake. The validator surfaces the misuse immediately.1 parent 1af7c2c commit 5b3ee80
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
0 commit comments