🚑 Fix crash since -1 release does not exist

This commit is contained in:
C-3PO 2018-06-23 21:37:31 +02:00
parent 33175d9dbe
commit 62ed08c6c3
Signed by: c3po
GPG key ID: 62993C4BB4D86F24

View file

@ -22,7 +22,9 @@ export default function parsePatchManifest(manifestFile: any): any {
ReleaseUpdatePaths.elements.forEach((ReleaseUpdatePath: any) => {
const from = ReleaseUpdatePath.elements[0].elements[0].text;
const to = ReleaseUpdatePath.elements[1].elements[0].text;
out.releases[from].to.push(to);
if (from !== '-1') {
out.releases[from].to.push(to);
}
out.releases[to].from.push(from);
});