Commit d1bd976
authored
Set-GitHubRepositoryTopic: Fix Exception When Clear 'Parameter' is Specified (#216)
This fixes the exception in the `Set-GithubRepositoryTopic` function when the `Clear` parameter is specified.
#### References
https://developer.github.com/v3/repos/#replace-all-repository-topics - Send an empty array ([]) to clear all topics from the repository.
The problem with the existing implementation was that it was creating an array of 1 element, where the element was `$null`.
Fixes #2151 parent 00f099f commit d1bd976
1 file changed
+10
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1033 | 1033 | | |
1034 | 1034 | | |
1035 | 1035 | | |
1036 | | - | |
1037 | | - | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
1038 | 1045 | | |
1039 | | - | |
1040 | 1046 | | |
1041 | | - | |
| 1047 | + | |
1042 | 1048 | | |
1043 | 1049 | | |
1044 | 1050 | | |
| |||
0 commit comments