From 14e73367c673f97d375f42efed33eca5aaa8dec7 Mon Sep 17 00:00:00 2001 From: C-3PO Date: Wed, 4 Jul 2018 20:04:16 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Fix=20typos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/cdn/funcs/handleResponse.ts | 4 ++-- src/ssn/findReleasePath.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cdn/funcs/handleResponse.ts b/src/cdn/funcs/handleResponse.ts index 9f667b8..e58bb94 100644 --- a/src/cdn/funcs/handleResponse.ts +++ b/src/cdn/funcs/handleResponse.ts @@ -1,6 +1,6 @@ import * as http from 'http'; -/** Too avoid */ +/** Too avoid overloading the server, do not allow large files (> 100 MB) to be handled in memory. */ const MAX_MEMORY_SIZE = 100 * 1024 * 1024; export default function handleResponse( @@ -34,7 +34,7 @@ export default function handleResponse( chunkList.push(chunk); }); - //If we finished reading response, check for correctness and return it + //If we finished reading response, check for correctness, then return it response.on('end', () => { //Check that length is correct if (totalLength !== headerLength) { diff --git a/src/ssn/findReleasePath.ts b/src/ssn/findReleasePath.ts index 6850f86..208ce13 100644 --- a/src/ssn/findReleasePath.ts +++ b/src/ssn/findReleasePath.ts @@ -52,7 +52,7 @@ function getFroms({ product, to: releaseTo}: {product: Product, to: number}) { * the release path, or an empty array if no path exists. * E.g. for `{ from: 21, to: 24 }`, it returns [[21, 22], [22, 23], [23, 24]]. * Does not actually look at the manifest.xml file but theorizes on possible patches based on the usually created patches, allowing - * us to find release pathes for products that have not been released yet. + * us to find release paths for products that have not been released yet. */ export default function findReleasePath({ product, from, to}: {product: Product, from: number, to: number}): Array<[number, number]> { //Verify function arguments