Skip to content

Commit eff3c22

Browse files
committed
Remove unused code from GetBuildInfo
1 parent 95351b7 commit eff3c22

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

Source/Private/GetBuildInfo.ps1

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,10 @@ function GetBuildInfo {
1111
$BuildCommandInvocation
1212
)
1313

14-
$BuildInfo = if ($BuildManifest -and (Test-Path $BuildManifest)) {
15-
if ((Split-path -Leaf $BuildManifest) -eq 'build.psd1') {
16-
# Read the Module Manifest configuration file for default parameter values
17-
Write-Debug "Load Build Manifest $BuildManifest"
18-
Import-Metadata -Path $BuildManifest
19-
} else {
20-
Write-Debug "Use SourcePath $BuildManifest"
21-
@{ SourcePath = $BuildManifest }
22-
}
14+
$BuildInfo = if ($BuildManifest -and (Test-Path $BuildManifest) -and (Split-path -Leaf $BuildManifest) -eq 'build.psd1') {
15+
# Read the build.psd1 configuration file for default parameter values
16+
Write-Debug "Load Build Manifest $BuildManifest"
17+
Import-Metadata -Path $BuildManifest
2318
} else {
2419
@{}
2520
}

0 commit comments

Comments
 (0)