Should this line be elseif (-not [System.String]::IsNullOrEmpty($BaseDirectory)) to solve that the throw statement is never reached?
|
elseif ($null -ne $BaseDirectory) |
It looks like the line should be changed to what is suggested above, but that will fail the test, and looking at this it need to be looked at further to see if it should be refactored in some way depending on how the function is used from the classes (how ImportLocalization() is used).
Should this line be
elseif (-not [System.String]::IsNullOrEmpty($BaseDirectory))to solve that thethrowstatement is never reached?DscResource.Base/source/Private/Get-LocalizedDataRecursive.ps1
Line 83 in 8391fad
It looks like the line should be changed to what is suggested above, but that will fail the test, and looking at this it need to be looked at further to see if it should be refactored in some way depending on how the function is used from the classes (how
ImportLocalization()is used).