SmbShare: Remove duplicate code #226
Labels
enhancement
The issue is an enhancement request.
help wanted
The issue is up for grabs for anyone in the community.
Details of the scenario you tried and the problem that is occurring
The helper function
Add-SmbShareAccessPermission
is using duplicated code blocks. We should make the code simpler and reduce code management by removing the duplicated code.Duplicated code blocks:
Verbose logs showing the problem
Not applicable
Suggested solution to the issue
Add a new helper function so each code path called the helper functions with parameters instead.
The DSC configuration that is used to reproduce the issue (as detailed as possible)
# not applicable
The operating system the target node is running
n/a
Version and build of PowerShell the target node is running
n/a
Version of the DSC module that was used ('dev' if using current dev branch)
dev
The text was updated successfully, but these errors were encountered: