Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2654f0f

Browse files
Clarified Indentation
This change may look larger than it actually is, just put the opening "{" on it's own line and indented it & everything under it.
1 parent d4bbd31 commit 2654f0f

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

‎Functions/CatalogItems/Remove-RsCatalogItem.ps1‎

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -54,23 +54,24 @@ function Remove-RsCatalogItem
5454
[string]
5555
$Path
5656
)
57-
process {
58-
59-
if(-not $Proxy)
57+
process
6058
{
61-
$Proxy = New-RSWebServiceProxy -ReportServerUri $ReportServerUri -Credentials $ReportServerCredentials
62-
}
6359

64-
try
65-
{
66-
Write-Verbose "Deleting catalog item $Path..."
67-
$Proxy.DeleteItem($Path)
68-
Write-Information "Catalog item deleted successfully!"
69-
}
70-
catch
71-
{
72-
Write-Error "Exception occurred while deleting catalog item! $($_.Exception.Message)"
73-
break
74-
}
60+
if(-not $Proxy)
61+
{
62+
$Proxy = New-RSWebServiceProxy -ReportServerUri $ReportServerUri -Credentials $ReportServerCredentials
63+
}
64+
65+
try
66+
{
67+
Write-Verbose "Deleting catalog item $Path..."
68+
$Proxy.DeleteItem($Path)
69+
Write-Information "Catalog item deleted successfully!"
70+
}
71+
catch
72+
{
73+
Write-Error "Exception occurred while deleting catalog item! $($_.Exception.Message)"
74+
break
75+
}
7576
}
7677
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /