Skip to content

Commit 18cb4eb

Browse files
committed
Normalize casing of $LastExitCode
1 parent cc70088 commit 18cb4eb

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

appveyor.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ for:
5050
CD ./docs
5151
& ./generate-examples.ps1
5252
& dotnet docfx docfx.json
53-
if ($lastexitcode -ne 0) {
54-
throw "docfx build failed with exit code $lastexitcode."
53+
if ($LastExitCode -ne 0) {
54+
throw "docfx failed with exit code $LastExitCode."
5555
}
5656
5757
# https://www.appveyor.com/docs/how-to/git-push/

inspectcode.ps1

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44

55
dotnet tool restore
66

7-
if ($LASTEXITCODE -ne 0) {
8-
throw "Tool restore failed with exit code $LASTEXITCODE"
7+
if ($LastExitCode -ne 0) {
8+
throw "Tool restore failed with exit code $LastExitCode"
99
}
1010

1111
$outputPath = [System.IO.Path]::Combine([System.IO.Path]::GetTempPath(), 'jetbrains-inspectcode-results.xml')
1212
$resultPath = [System.IO.Path]::Combine([System.IO.Path]::GetTempPath(), 'jetbrains-inspectcode-results.html')
1313
dotnet jb inspectcode JsonApiDotNetCore.sln --build --output="$outputPath" --profile=WarningSeverities.DotSettings --properties:Configuration=Release --severity=WARNING --verbosity=WARN -dsl=GlobalAll -dsl=GlobalPerProduct -dsl=SolutionPersonal -dsl=ProjectPersonal
1414

15-
if ($LASTEXITCODE -ne 0) {
16-
throw "Code inspection failed with exit code $LASTEXITCODE"
15+
if ($LastExitCode -ne 0) {
16+
throw "Code inspection failed with exit code $LastExitCode"
1717
}
1818

1919
[xml]$xml = Get-Content "$outputPath"

0 commit comments

Comments
 (0)