Skip to content

Commit b1a8bb0

Browse files
committed
Removed unnecessary write host
1 parent 5ecc066 commit b1a8bb0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tools/ImportExamples.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,6 @@ function Start-WebScrapping {
218218
$LastExternalDocUrlPathSegmentWithoutQueryParam = $LastExternalDocUrlPathSegmentWithQueryParam.Split("?")[0]
219219

220220
$GraphDocsUrl = "https://raw.githubusercontent.com/microsoftgraph/microsoft-graph-docs/main/api-reference/$GraphProfile/api/$LastExternalDocUrlPathSegmentWithoutQueryParam.md"
221-
Write-Host $GraphDocsUrl
222221
$UrlPaths = $GraphDocsUrl.Split("://")[1].Split("/")
223222
$LastPathSegment = $UrlPaths[$UrlPaths.Length - 1]
224223
$HeaderList = New-Object -TypeName 'System.Collections.ArrayList';
@@ -524,7 +523,7 @@ function Retain-ExistingCorrectExamples {
524523
$Stream.Close()
525524
}
526525
catch {
527-
Write-Error "Error in removing empty lines at the end of the file: $File"
526+
528527
}
529528
$Stream.Dispose()
530529
$RetainedExamples.Clear()

0 commit comments

Comments
 (0)