🔒 Verify input to releasePaths
This commit is contained in:
parent
053714bf10
commit
22dfac4828
1 changed files with 1 additions and 1 deletions
|
@ -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.');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue