fix lint (PSScriptAnalyzer) issues (#62)
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
#### 📖 Summary <!-- Provide a summary of your changes. Describe the why and not how. --> #### 📑 Test Plan > 💡 Select your test plan for the code changes. - [x] Tested via Drone.io pipeline - [ ] Custom test - [ ] No test plan ##### Details / Justification <!-- Add your test details or justification for missing tests here. --> #### 📚 Additional Notes <!-- A place for additional detail notes. --> Co-authored-by: OCram85 <marco.blessing@googlemail.com> Reviewed-on: #62
This commit is contained in:
@ -64,6 +64,8 @@ function Test-CSPfxCertificate {
|
||||
}
|
||||
|
||||
process {
|
||||
# Script analyzer issue (unused var) workaround
|
||||
$null = $Thumbprint
|
||||
$Cert = $Store.Certificates | Where-Object { $_.Thumbprint -eq $Thumbprint }
|
||||
|
||||
if ($null -eq $Cert) {
|
||||
|
Reference in New Issue
Block a user