style: инициализировать слайсы через make
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -94,9 +94,11 @@ var restoreCmd = &cobra.Command{
|
||||
}
|
||||
|
||||
decryptor := newRestoreDecryptor(registry)
|
||||
privateKeys := make([]crypto.RecipientPriv, 0, 2)
|
||||
privateKeys = append(privateKeys, pqPriv, classicalPriv)
|
||||
if err := decryptor.Decrypt(
|
||||
inFile,
|
||||
[]crypto.RecipientPriv{pqPriv, classicalPriv},
|
||||
privateKeys,
|
||||
out,
|
||||
); err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user