Skip to content

Commit

Permalink
Code cleanup to remove spurious errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rhymeswithmogul committed Oct 25, 2022
1 parent f7de4bf commit f8e9a6d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# PSGemini ChangeLog

## Version 1.0.5
Code cleanup.

## Version 1.0.4
* The `-Fingerprint` parameter to `Remove-PSGeminiKnownCertificate` did not work. This has been corrected.
* `Remove-PSGeminiKnownCertificate` now supports `ShouldProcess` (`-Confirm` and `-WhatIf`).
Expand Down
2 changes: 1 addition & 1 deletion NEWS
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION 1.0.4
VERSIONS 1.0.5 and 1.0.4
Fixed a bug in Remove-PSGeminiKnownCertificate where certificates could not be
deleted by fingerprint.

Expand Down
2 changes: 1 addition & 1 deletion PSGemini.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
RootModule = 'src/PSGemini.psm1'

# Version number of this module.
ModuleVersion = '1.0.4'
ModuleVersion = '1.0.5'

# Supported PSEditions
CompatiblePSEditions = @('Core', 'Desktop')
Expand Down
6 changes: 2 additions & 4 deletions src/PSGemini.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -454,8 +454,7 @@ Function Invoke-GeminiRequest
}
Else
{
$response -Split "([`r`n]+)" | ForEach-Object -ScriptBlock
{
$response -Split "([`r`n]+)" | ForEach-Object {
#Write-Debug "OUTPUT: $($_ -Replace "`r",'' -Replace "`n",'')"

# Build content variable
Expand Down Expand Up @@ -582,8 +581,7 @@ Function Get-PSGeminiKnownCertificate
{
Write-Debug "Found a certificate store at ${env:PSGeminiTOFUPath}."
$AllCerts = @()
Import-CSV -Path $env:PSGeminiTOFUPath | ForEach-Object -ScriptBlock
{
Import-CSV -Path $env:PSGeminiTOFUPath | ForEach-Object {
If ($null -eq $HostName -or $HostName -In @('', $_.HostName))
{
$NotAfter = [DateTime]::FromFileTimeUTC($_.ExpirationDate)
Expand Down

0 comments on commit f8e9a6d

Please sign in to comment.