Skip to content

Commit 98ae6ef

Browse files
authored
Fix retrieving extension list when there's no extension (#129)
1 parent b983951 commit 98ae6ef

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

PhpManager/private/Get-PhpExtensionDetail.ps1

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,13 @@
5151
throw "Unable to find the file/folder $folder"
5252
}
5353
}
54+
$somethingToInspect = $false
5455
if (Test-Path -Path $folder -PathType Container) {
5556
$subFiles = Get-ChildItem -Path $folder -Filter '*.dll' | Select-Object -ExpandProperty 'FullName'
56-
$somethingToInspect = $null -ne $subFiles -and $subFiles.Count -gt 0
57-
if ($somethingToInspect) {
57+
if ($subFiles) {
5858
$inspectorParameters += $subFiles
59+
$somethingToInspect = $true
5960
}
60-
} else {
61-
$somethingToInspect = $false
6261
}
6362
}
6463
if ($somethingToInspect) {

0 commit comments

Comments
 (0)