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.'); }