Commit 6e3ea69
committed
✨ [feat] Improves Build-ColorScriptCache function
✨ [feat] Enhances `Build-ColorScriptCache` function to streamline output and `PassThru` behavior.
- 🔄 Modifies the logic to return results immediately when `-PassThru` is specified, improving efficiency.
- 💬 Adjusts the summary display to only occur when `-PassThru` is not used and there are results, preventing unnecessary output.
- 🧹 Simplifies the code by removing redundant `-PassThru` check, leading to a cleaner and more maintainable structure.
Signed-off-by: Nick2bad4u <20943337+Nick2bad4u@users.noreply.github.com>1 parent 85c68b7 commit 6e3ea69
1 file changed
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1401 | 1401 | | |
1402 | 1402 | | |
1403 | 1403 | | |
1404 | | - | |
1405 | | - | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
1406 | 1411 | | |
1407 | 1412 | | |
1408 | 1413 | | |
| |||
1442 | 1447 | | |
1443 | 1448 | | |
1444 | 1449 | | |
1445 | | - | |
1446 | | - | |
1447 | | - | |
1448 | | - | |
1449 | 1450 | | |
1450 | 1451 | | |
1451 | 1452 | | |
| |||
0 commit comments