Skip to content

Commit

Permalink
Merge pull request #7 from johnduprey/dev
Browse files Browse the repository at this point in the history
PSScriptAnalyzer
  • Loading branch information
JohnDuprey authored Feb 3, 2023
2 parents 7675959 + 2b55bf3 commit 24f8532
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DNSHealth/Public/Records/Read-DkimRecord.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ function Read-DkimRecord {
if ($MinimumSelectorPass -gt 0 -and $SelectorPasses -eq 0) {
$ValidationFails.Add(('{0} DKIM record(s) found. The minimum number of valid records ({1}) was not met.' -f $SelectorPasses, $MinimumSelectorPass)) | Out-Null
}

elseif ($MinimumSelectorPass -gt 0 -and $SelectorPasses -ge $MinimumSelectorPass) {
$ValidationPasses.Add(('Minimum number of valid DKIM records were met {0}/{1}.' -f $SelectorPasses, $MinimumSelectorPass))
}
Expand Down
2 changes: 1 addition & 1 deletion DNSHealth/Public/Records/Read-NSRecord.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function Read-NSRecord {
$ValidationFails.Add('No nameservers found for this domain.') | Out-Null
$NSRecords = $null
}

else {
$NSRecords = $Result.Answer.data
$ValidationPasses.Add('Nameserver record is present.') | Out-Null
Expand Down

0 comments on commit 24f8532

Please sign in to comment.