Commit 8e7b3d6
authored
🪲 [Fix]: Suppress output of functions for revoking access tokens (#452)
## Description
This pull request makes small adjustments to improve code clarity and
ensure consistent handling of unused return values. Specifically, it
updates two functions to explicitly discard the output of the
`Invoke-GitHubAPI` command by assigning it to `$null`.
Changes to improve code clarity:
* [`src/functions/private/Apps/GitHub
Apps/Revoke-GitHubAppInstallationAccessToken.ps1`](diffhunk://#diff-fd0c42ecf8245c045d9e3798af80e494cd944a2e8ba180bf5719f381f517f689L39-R39):
Updated the `Revoke-GitHubAppInstallationAccessToken` function to assign
the return value of `Invoke-GitHubAPI` to `$null`, ensuring unused
output is explicitly discarded.
*
[`src/functions/public/Auth/Revoke-GitHubAccessToken.ps1`](diffhunk://#diff-9be3d5b3b006ef480e23f78ee1fa7cb03d19f8973cc39eab75c452e8f59c3730L47-R47):
Updated the `Revoke-GitHubAccessToken` function to assign the return
value of `Invoke-GitHubAPI` to `$null`, maintaining consistency in
handling unused outputs.
## Type of change
<!-- Use the check-boxes [x] on the options that are relevant. -->
- [ ] 📖 [Docs]
- [x] 🪲 [Fix]
- [ ] 🩹 [Patch]
- [ ] 1 parent 6b3d855 commit 8e7b3d6
File tree
2 files changed
+2
-2
lines changed- src/functions
- private/Apps/GitHub Apps
- public/Auth
2 files changed
+2
-2
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
0 commit comments