A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/microsoft/PowerShellForGitHub/commit/d1bd976d70cc975dfd247f9ad2bace58a465c7da below:

Fix Exception When Clear 'Parameter' is Sp… · microsoft/PowerShellForGitHub@d1bd976 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+10

-4

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+10

-4

lines changed Original file line number Diff line number Diff line change

@@ -1033,12 +1033,18 @@ function Set-GitHubRepositoryTopic

1033 1033

'Clear' = $PSBoundParameters.ContainsKey('Clear')

1034 1034

}

1035 1035 1036 -

$description = "Replacing topics in $RepositoryName"

1037 -

if ($Clear) { $description = "Clearing topics in $RepositoryName" }

1036 +

if ($Clear)

1037 +

{

1038 +

$description = "Clearing topics in $RepositoryName"

1039 +

$Name = @()

1040 +

}

1041 +

else

1042 +

{

1043 +

$description = "Replacing topics in $RepositoryName"

1044 +

}

1038 1045 1039 -

$names = @($Name)

1040 1046

$hashBody = @{

1041 -

'names' = $names

1047 +

'names' = $Name

1042 1048

}

1043 1049 1044 1050

$params = @{

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4