Skip to content

Commit 75fd460

Browse files
committed
Use implicit parameters where possible
1 parent fddf22d commit 75fd460

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/ScheduledTaskManagement/Public/Setup-ScheduledTask.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function Setup-ScheduledTask {
4040
if (!$DefinitionObject) {
4141
$DefinitionCollectionRaw = $DefinitionFileCollection | % {
4242
if ($AsJson) {
43-
Get-Content -Path $_.FullName | ConvertFrom-Json
43+
Get-Content $_.FullName | ConvertFrom-Json
4444
}else {
4545
. $_.FullName
4646
}

src/ScheduledTaskManagement/ScheduledTaskManagement.psm1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ $script:MODULE['PRIVATE_DIR'] = Join-Path $script:MODULE['BASE_DIR'] 'Private'
1212
$script:MODULE['HELPERS_DIR'] = Join-Path $script:MODULE['BASE_DIR'] 'helpers' # Module helpers
1313

1414
# Load vendor, Public, Private, classes, helpers
15-
Get-ChildItem -Path "$($script:MODULE['PUBLIC_DIR'])\*.ps1" | % { . $_.FullName }
16-
Get-ChildItem -Path "$($script:MODULE['PRIVATE_DIR'])\*.ps1" | % { . $_.FullName }
17-
Get-ChildItem -Path "$($script:MODULE['HELPERS_DIR'])\*.ps1" | % { . $_.FullName }
15+
Get-ChildItem "$($script:MODULE['PUBLIC_DIR'])\*.ps1" | % { . $_.FullName }
16+
Get-ChildItem "$($script:MODULE['PRIVATE_DIR'])\*.ps1" | % { . $_.FullName }
17+
Get-ChildItem "$($script:MODULE['HELPERS_DIR'])\*.ps1" | % { . $_.FullName }
1818

1919
# Export Public functions
2020
Export-ModuleMember -Function (Get-ChildItem "$($script:MODULE['PUBLIC_DIR'])\*.ps1" | Select-Object -ExpandProperty BaseName)

0 commit comments

Comments
 (0)