Skip to content

Refactor JsonConfigFileAccessor class to remove redundant path building logic. #5179

@dantraMSFT

Description

@dantraMSFT

Every property accessor in this class has duplicate code to calculate the fully qualified path to one of the two PowerShellProperties.json files. This logic should be moved to the constructor and exposed via internal or private accessors.

Environment data

PSVersion 6.0.0-beta.8
PSEdition Core
GitCommitId v6.0.0-beta.8-67-gca2630a3dea6420a3cd3914c84a74c1c45311f54
OS Microsoft Windows 10.0.17017
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Code Cleanupthe issue is for cleaning up the code with no impact on functionalityResolution-No ActivityIssue has had no activity for 6 months or moreWG-Enginecore PowerShell engine, interpreter, and runtime

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions