Skip to content

Commit

Permalink
feat: $this is $Irregular ( Fixes #219 )
Browse files Browse the repository at this point in the history
Ifguarding myTypeData
  • Loading branch information
James Brundage committed May 25, 2024
1 parent ac34e73 commit 381a7b9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Irregular.ps.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ Set-Alias Write-RegEx New-RegEx
Set-Alias ?<.> Use-Regex

$myTypeData = Get-TypeData -TypeName $MyModule.Name
$myMembers = @($myTypeData.Members.GetEnumerator())

$myMembers = if ($myTypeData) {
@($myTypeData.Members.GetEnumerator())
}
$KnownVerbs = Get-Verb | Select-Object -ExpandProperty Verb

$myMemberCommands =
Expand Down

0 comments on commit 381a7b9

Please sign in to comment.