Replace cipher results with filtered results (#301)
This commit is contained in:
parent
80f34d5de5
commit
1ed637e123
|
@ -133,9 +133,9 @@ export class GetCommand extends DownloadCommand {
|
||||||
}
|
}
|
||||||
if (Array.isArray(decCipher)) {
|
if (Array.isArray(decCipher)) {
|
||||||
if (filter != null) {
|
if (filter != null) {
|
||||||
const filteredCiphers = decCipher.filter(filter);
|
decCipher = decCipher.filter(filter);
|
||||||
if (filteredCiphers.length === 1) {
|
if (decCipher.length === 1) {
|
||||||
decCipher = filteredCiphers[0];
|
decCipher = decCipher[0];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Array.isArray(decCipher)) {
|
if (Array.isArray(decCipher)) {
|
||||||
|
|
Loading…
Reference in New Issue