Skip to content

Commit dcd89ca

Browse files
Trimming whitespace
1 parent c0c45bd commit dcd89ca

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

@FileChange.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
.Description
55
Uses the [IO.FileSystemWatcher] to watch for changes to files.
66
7-
Because some applications and frameworks write to files differently,
7+
Because some applications and frameworks write to files differently,
88
you may see more than one event for a given change.
99
#>
1010
param(
@@ -45,7 +45,7 @@ process {
4545
}
4646

4747
if ([IO.File]::Exists("$resolvedFilePath")) { # If we're passed a path to a specific file
48-
$fileInfo = ([IO.FileInfo]"$resolvedFilePath")
48+
$fileInfo = ([IO.FileInfo]"$resolvedFilePath")
4949
$filePath = $fileInfo.Directory.FullName # we need to watch the directory
5050
$FileFilter = $fileInfo.Name # and then filter based off of the file name.
5151
} elseif ([IO.Directory]::Exists("$resolvedFilePath")) {
@@ -65,6 +65,6 @@ process {
6565
$combinedNotifyFilter = $combinedNotifyFilter -bor $n
6666
}
6767
$fileSystemWatcher.NotifyFilter = $combinedNotifyFilter
68-
$fileSystemWatcher |
68+
$fileSystemWatcher |
6969
Add-Member NoteProperty EventName $EventName -Force -PassThru
7070
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#requires -Module PSDevOps
2-
New-GitHubWorkflow -Name "Analyze, Test, Tag, and Publish" -On Push, PullRequest, Demand -Job PowerShellStaticAnalysis, TestPowerShellOnLinux, TagReleaseAndPublish -Environment @{
2+
New-GitHubWorkflow -Name "Analyze, Test, Tag, and Publish" -On Push, PullRequest, Demand -Job PowerShellStaticAnalysis, TestPowerShellOnLinux, TagReleaseAndPublish -Environment @{
33
NoCoverage = $true
44
}|
55
Set-Content .\.github\workflows\TestAndPublish.yml -Encoding UTF8 -PassThru

Eventful.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Set-Alias -Name Send -Value Send-Event
88
Set-Alias -Name Receive -Value Receive-Event
99

1010

11-
$eventSources = Get-EventSource
11+
$eventSources = Get-EventSource
1212

1313
foreach ($es in $eventSources) {
1414
Set-Alias "On@$($es.Name -replace '^@' -replace '\.ps1$')" -Value Watch-Event

Get-EventSource.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
$loadedModule.PrivateData.($myInv.MyCommand.Module.Name)
8888
) {
8989
# Determine the root of the module with private data.
90-
$thisModuleRoot = [IO.Path]::GetDirectoryName($loadedModule.Path)
90+
$thisModuleRoot = [IO.Path]::GetDirectoryName($loadedModule.Path)
9191
# and get the extension data
9292
$extensionData = $loadedModule.PrivateData.($myInv.MyCommand.Module.Name)
9393
if ($extensionData -is [Hashtable]) { # If it was a hashtable

Receive-Event.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
}
7474
process {
7575
#region Passthru Events
76-
if ($PSCmdlet.ParameterSetName -eq 'EventIdentifier' -and
76+
if ($PSCmdlet.ParameterSetName -eq 'EventIdentifier' -and
7777
$_ -is [Management.Automation.PSEventArgs]) {
7878
$_ | accumulate # pass events thru and accumulate them for later.
7979
return
@@ -86,7 +86,7 @@
8686
if ($SourceIdentifier) {
8787
foreach ($sid in $sourceIdentifier) {
8888
if ($evt.SourceIdentifier -eq $sid -or $evt.SourceIdentifier -like $sid) {
89-
$evt | accumulate
89+
$evt | accumulate
9090
}
9191
if ($First -and $accumulated.Count -ge ($First + $Skip)) {
9292
break nextEvent

Send-Event.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
#endregion Map New-Event Parameters
7070

7171
#region Send Each Event
72-
foreach ($sourceID in $SourceIdentifier) { # Walk over each source identifier
72+
foreach ($sourceID in $SourceIdentifier) { # Walk over each source identifier
7373
# and call New-Event.
7474
$evt = New-Event @newEventParams -SourceIdentifier $sourceID
7575
if ($PassThru) { # If we want to -PassThru events

0 commit comments

Comments
 (0)