Commit 5c9c312
committed
Added Copilot suggestion so Test-IsInGroup consistently returns a boolean. Error paths no longer return $null, which previously caused silent false negatives on transient Graph errors and bypassed caching. Instead, errors are surfaced explicitly and a boolean result is returned in all code paths.
1 parent 045d6d8 commit 5c9c312
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
| 197 | + | |
| 198 | + | |
198 | 199 | | |
199 | 200 | | |
200 | 201 | | |
| |||
209 | 210 | | |
210 | 211 | | |
211 | 212 | | |
212 | | - | |
| 213 | + | |
| 214 | + | |
213 | 215 | | |
214 | 216 | | |
215 | 217 | | |
| |||
0 commit comments