Skip to content

Commit 9fc6c16

Browse files
dennisl68-castrajohlju
authored andcommitted
chore: 🎨 Fixed formating requirements
1 parent 03b0400 commit 9fc6c16

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

source/Modules/FailoverCluster.Common/FailoverCluster.Common.psm1

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ $script:localizedData = Get-LocalizedData -DefaultUICulture 'en-US'
1212
Distinguished Name to be converted to a Simple Name
1313
#>
1414

15-
function Convert-DistinguishedNameToSimpleName {
15+
function Convert-DistinguishedNameToSimpleName
16+
{
1617
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseDeclaredVarsMoreThanAssignments', 'returnValue')]
1718
[CmdletBinding()]
1819
[OutputType([string])]
@@ -25,7 +26,8 @@ function Convert-DistinguishedNameToSimpleName {
2526

2627
$returnValue = $DistinguishedName
2728

28-
if ($DistinguishedName -match '^(\s*CN\s*=\w*)((\s*,\s*OU\s*=\w*)*)((\s*,\s*DC\s*=\w*)*)$') {
29+
if ($DistinguishedName -match '^(\s*CN\s*=\w*)((\s*,\s*OU\s*=\w*)*)((\s*,\s*DC\s*=\w*)*)$')
30+
{
2931
$returnValue = ((($DistinguishedName -split ',')[0]) -split '=')[1]
3032
}
3133

0 commit comments

Comments
 (0)