Skip to content

Commit

Permalink
Swapping double quotes to single quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
roberttoups committed Nov 8, 2023
1 parent 38ed9b8 commit 6bed585
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Public/Get-SubnetInformation.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,9 @@ function Get-SubnetInformation {
if($IPv4Address) {
$IPv4AddressObject = [System.Net.IPAddress]::Parse($IPv4Address)
if($PSCmdlet.ParameterSetName -eq 'Prefix') {
$SubnetMaskObject = [System.Net.IPAddress]::Parse((ConvertTo-IPv4 -Integer ([System.Convert]::ToInt64(("1" * $Prefix + "0" * (32 - $Prefix)), 2))))
$SubnetMaskObject = [System.Net.IPAddress]::Parse((ConvertTo-IPv4 -Integer ([System.Convert]::ToInt64(('1' * $Prefix + '0' * (32 - $Prefix)), 2))))
} elseif($PSCmdlet.ParameterSetName -eq 'CIDR') {
$SubnetMaskObject = [System.Net.IPAddress]::Parse((ConvertTo-IPv4 -Integer ([System.Convert]::ToInt64(("1" * $Prefix + "0" * (32 - $Prefix)), 2))))
$SubnetMaskObject = [System.Net.IPAddress]::Parse((ConvertTo-IPv4 -Integer ([System.Convert]::ToInt64(('1' * $Prefix + '0' * (32 - $Prefix)), 2))))
} elseif($PSCmdlet.ParameterSetName -eq 'SubnetMask') {
$SubnetMaskObject = [System.Net.IPAddress]::Parse($SubnetMask)
$TempTable = Get-PrefixTable
Expand Down

0 comments on commit 6bed585

Please sign in to comment.