-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Description This pull request includes a minor change to the `Get-PSModuleVariablesToExport.ps1` script. The change involves moving the initialization of the `$variablesToExport` variable to an earlier point in the script to ensure it is defined before any potential early returns. * [`scripts/helpers/Build/Get-PSModuleVariablesToExport.ps1`](diffhunk://#diff-e2148fcf63283d70b3d432f67fc98191e2cc712dc3f4d30914c8c0810d11a6deR28-L35): Moved the initialization of `$variablesToExport` to before the folder existence check to ensure it is always defined. ## Type of change <!-- Use the check-boxes [x] on the options that are relevant. --> - [ ] 📖 [Docs] - [x] 🪲 [Fix] - [ ] 🩹 [Patch] - [ ]⚠️ [Security fix] - [ ] 🚀 [Feature] - [ ] 🌟 [Breaking change] ## Checklist <!-- Use the check-boxes [x] on the options that are relevant. --> - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas
- Loading branch information
1 parent
d454e3a
commit 1e3d612
Showing
3 changed files
with
40 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
function Test-PSModuleTest { | ||
<# | ||
.SYNOPSIS | ||
Performs tests on a module. | ||
.EXAMPLE | ||
Test-PSModule -Name 'World' | ||
"Hello, World!" | ||
#> | ||
[CmdletBinding()] | ||
param ( | ||
# Name of the person to greet. | ||
[Parameter(Mandatory)] | ||
[string] $Name | ||
) | ||
Write-Output "Hello, $Name!" | ||
} |