Skip to content

Commit d9fe73b

Browse files
fix: revert comma operator on Get-SodiumPublicKey byte[] return
PSScriptAnalyzer's PSUseOutputTypeCorrectly rule sees ',\' as System.Object[]. Match the original pattern.
1 parent 25ac3a4 commit d9fe73b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/functions/public/Get-SodiumPublicKey.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
}
9595
$deriveResult = [PSModule.Sodium]::crypto_scalarmult_base($publicKeyByteArray, $privateKeyByteArray)
9696
if ($deriveResult -ne 0) { throw 'Unable to derive public key from private key.' }
97-
return , $publicKeyByteArray
97+
return $publicKeyByteArray
9898
} finally {
9999
if ($null -ne $privateKeyByteArray -and $privateKeyByteArray.Length -gt 0) {
100100
[array]::Clear($privateKeyByteArray, 0, $privateKeyByteArray.Length)

0 commit comments

Comments
 (0)