Skip to content

Get-LocalizedDataRecursive: Exception is never thrown when $BaseDirectory is not passed #17

@johlju

Description

@johlju

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThe issue is a bug.good first issueThe issue should be easier to fix and can be taken up by a beginner to learn to contribute on GitHubhelp wantedThe issue is up for grabs for anyone in the community.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions