@@ -125,8 +125,7 @@ Describe 'Coverage gaps for build and duplicate-analysis internals' {
125125 $thrown = $null
126126 try {
127127 Assert-NovaPublicFunctionFileLayout - ProjectInfo $projectInfo
128- }
129- catch {
128+ } catch {
130129 $thrown = $_
131130 }
132131
@@ -281,8 +280,7 @@ Describe 'Coverage gaps for build and duplicate-analysis internals' {
281280 $thrown = $null
282281 try {
283282 Build-Help
284- }
285- catch {
283+ } catch {
286284 $thrown = $_
287285 }
288286
@@ -344,8 +342,7 @@ Describe 'Coverage gaps for build and duplicate-analysis internals' {
344342
345343 try {
346344 Build-Help
347- }
348- finally {
345+ } finally {
349346 Remove-Item function:Import-MarkdownCommandHelp - ErrorAction SilentlyContinue
350347 Remove-Item function:Export-MamlCommandHelp - ErrorAction SilentlyContinue
351348 }
@@ -386,8 +383,7 @@ Describe 'Coverage gaps for build and duplicate-analysis internals' {
386383 {Build-Help } | Should -Not - Throw
387384 Assert-MockCalled Get-NovaHelpLocale - Times 0
388385 Assert-MockCalled Rename-Item - Times 0
389- }
390- finally {
386+ } finally {
391387 Remove-Item function:Import-MarkdownCommandHelp - ErrorAction SilentlyContinue
392388 Remove-Item function:Export-MamlCommandHelp - ErrorAction SilentlyContinue
393389 }
@@ -445,8 +441,7 @@ Describe 'Coverage gaps for build and duplicate-analysis internals' {
445441 $thrown = $null
446442 try {
447443 Build-Help
448- }
449- catch {
444+ } catch {
450445 $thrown = $_
451446 }
452447
@@ -455,8 +450,7 @@ Describe 'Coverage gaps for build and duplicate-analysis internals' {
455450 $thrown.CategoryInfo.Category | Should - Be ([System.Management.Automation.ErrorCategory ]::ObjectNotFound)
456451 $thrown.TargetObject | Should - Be ' /tmp/dist/NovaModuleTools'
457452 Assert-MockCalled Rename-Item - Times 0
458- }
459- finally {
453+ } finally {
460454 Remove-Item function:Import-MarkdownCommandHelp - ErrorAction SilentlyContinue
461455 Remove-Item function:Export-MamlCommandHelp - ErrorAction SilentlyContinue
462456 }
@@ -485,8 +479,7 @@ Describe 'Coverage gaps for build and duplicate-analysis internals' {
485479 $missingSourceError = $null
486480 try {
487481 Build-Module - ProjectInfo $projectInfo
488- }
489- catch {
482+ } catch {
490483 $missingSourceError = $_
491484 }
492485
@@ -502,8 +495,7 @@ Describe 'Coverage gaps for build and duplicate-analysis internals' {
502495 $psm1WriteError = $null
503496 try {
504497 Build-Module - ProjectInfo $projectInfo
505- }
506- catch {
498+ } catch {
507499 $psm1WriteError = $_
508500 }
509501
@@ -611,8 +603,7 @@ Describe 'Coverage gaps for build and duplicate-analysis internals' {
611603 ProjectName = ' NovaModuleTools'
612604 ManifestFilePSD1 = ' /tmp/NovaModuleTools.psd1'
613605 })
614- }
615- catch {
606+ } catch {
616607 $thrown = $_
617608 }
618609
0 commit comments