From 1ed637e123baaba0aa53a00de18d0c591d2e8884 Mon Sep 17 00:00:00 2001 From: Matt Gibson Date: Wed, 12 May 2021 08:09:34 -0500 Subject: [PATCH] Replace cipher results with filtered results (#301) --- src/commands/get.command.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/get.command.ts b/src/commands/get.command.ts index 2adc54469d..e202a6e0c8 100644 --- a/src/commands/get.command.ts +++ b/src/commands/get.command.ts @@ -133,9 +133,9 @@ export class GetCommand extends DownloadCommand { } if (Array.isArray(decCipher)) { if (filter != null) { - const filteredCiphers = decCipher.filter(filter); - if (filteredCiphers.length === 1) { - decCipher = filteredCiphers[0]; + decCipher = decCipher.filter(filter); + if (decCipher.length === 1) { + decCipher = decCipher[0]; } } if (Array.isArray(decCipher)) {