🎨 Minor function signature change

This commit is contained in:
C-3PO 2018-07-05 03:32:54 +02:00
parent 09de4b663b
commit 9688c12797
Signed by: c3po
GPG key ID: 62993C4BB4D86F24

View file

@ -1,8 +1,8 @@
import * as stream from 'stream'; import * as stream from 'stream';
import getDecryptor from '../decryption/decryptChunk'; import getDecryptor from '../decryption/decryptChunk';
export default function decryptStream(inputStream: stream.Readable, [key0, key1, key2]: [number, number, number]): stream.Readable { export default function decryptStream(inputStream: stream.Readable, decryptionKeys: [number, number, number]): stream.Readable {
const decryptor = getDecryptor([key0, key1, key2]); const decryptor = getDecryptor(decryptionKeys);
const outStream = new stream.Readable({ const outStream = new stream.Readable({
read(size) { read(size) {