Skip to content

Commit 16a916b

Browse files
committed
Remove unnecessary Export-ModuleMember statement for dot-sourced functions
1 parent 260fcf5 commit 16a916b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/utils/Object-Import.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,5 +309,5 @@ function Import-ObjectCode {
309309
}
310310
}
311311

312-
# Export the functions so they can be used when the script is dot-sourced
313-
Export-ModuleMember -Function Import-ObjectCode, Parse-Lines, Import-CodeToComponent, Find-VbaComponent, Import-ExcelObjects, Import-WordObjects
312+
# When this script is dot-sourced, functions are automatically available to the caller
313+
# No need for Export-ModuleMember in a .ps1 file

0 commit comments

Comments
 (0)