From 22dfac4828e59ca2601c5677c2aaf7a0669fac8a Mon Sep 17 00:00:00 2001 From: C-3PO Date: Fri, 22 Jun 2018 18:22:28 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=92=20Verify=20input=20to=20releasePat?= =?UTF-8?q?hs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ssn/releasePaths.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssn/releasePaths.ts b/src/ssn/releasePaths.ts index f24b6f3..5d6314e 100644 --- a/src/ssn/releasePaths.ts +++ b/src/ssn/releasePaths.ts @@ -57,7 +57,7 @@ export default function findReleasePath({ product, from, to}: {product: Product, } //We assume that "from < to" is true for all patches - if (from > to) { + if (from >= to) { throw new Error('Cannot patch backwards; to must be greater than from.'); }