Skip to content

Commit 24a55e1

Browse files
feat: Adding historical tracking ( Fixes PoshWeb#12 )
Removing potential null, controlling depth
1 parent 29e9ad8 commit 24a55e1

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

build.ps1

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,12 @@ foreach ($buildTime in $buildTimes) {
7272

7373
$history = @(try {
7474
Invoke-RestMethod -Uri $BuildTimeHistoryUrl -ErrorAction Ignore
75-
} catch {
76-
$null
77-
})
75+
} catch {}) -ne $null
7876

7977
$history += $buildTimes |
8078
Select-Object Technique, Time, RelativeSpeed, Date
8179

82-
ConvertTo-Json -InputObject $history > ./history.json
80+
ConvertTo-Json -InputObject $history > ./history.json -Depth 2
8381

8482
$buildTimes | ConvertTo-Html -Title BuildTimes > ./times.html
8583

0 commit comments

Comments
 (0)