Repository navigation
Commit abaf531
committed
Remove redundant check from Start-EditorServices
6f76c6e introduced a correct change to
the ValidateSet, but added a redundant check that is already handled in
`StartEditorServicesCommand.cs` in its `StartLogging()` routine. In
fact, exchanging the values in Start-EditorServices will suppress the
warning about the old PSES log levels that `StartLogging()` would
normally emit.
However, the check is actually harmful on top of this issue since it
doesn't check if LogLevel is even set.
If LogLevel is `$null`, then the default option
```
default { $LogLevel }
```
isn't valid PowerShell anymore:
```
The variable cannot be validated because the value $null is not a valid value for the LogLevel variable.
```1 parent c7088b7 commit abaf531
1 file changed
Lines changed: 3 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
54 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | 110 | | |
119 | 111 | | |
0 commit comments