🔒 Verify input to releasePaths

This commit is contained in:
C-3PO 2018-06-22 18:22:28 +02:00
parent 053714bf10
commit 22dfac4828
Signed by: c3po
GPG key ID: 62993C4BB4D86F24

View file

@ -57,7 +57,7 @@ export default function findReleasePath({ product, from, to}: {product: Product,
} }
//We assume that "from < to" is true for all patches //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.'); throw new Error('Cannot patch backwards; to must be greater than from.');
} }