🐛 Fix typo
This commit is contained in:
parent
8dcd7b67f0
commit
fc9c441fa8
2 changed files with 4 additions and 4 deletions
|
@ -27,8 +27,8 @@ interface ISolid {
|
||||||
announce: string;
|
announce: string;
|
||||||
/** Title of this torrent in the format `${product}: ${from}to${to}` */
|
/** Title of this torrent in the format `${product}: ${from}to${to}` */
|
||||||
title: string;
|
title: string;
|
||||||
/** Unknown integer, either 16097 or 16098. */
|
/** Unknown integer, either 16068 or 16097. */
|
||||||
networkgroupid: 16097 | 16098;
|
networkgroupid: 16068 | 16097;
|
||||||
/** The URL where the files from this torrent are stored, in the format `http://cdn-patch.swtor.com/patch/${product}/${product}_${from}to${to}/` */
|
/** The URL where the files from this torrent are stored, in the format `http://cdn-patch.swtor.com/patch/${product}/${product}_${from}to${to}/` */
|
||||||
reliable: string;
|
reliable: string;
|
||||||
/** Always '0' or '1' */
|
/** Always '0' or '1' */
|
||||||
|
|
|
@ -16,8 +16,8 @@ export default function verifySolidpkg(file: ISolid, { product, from, to }: {pro
|
||||||
if (file.title !== `${product}: ${from}to${to}`) {
|
if (file.title !== `${product}: ${from}to${to}`) {
|
||||||
throw new Error(`Expected title "${product}: ${from}to${to}" but it was "${file.title}".`);
|
throw new Error(`Expected title "${product}: ${from}to${to}" but it was "${file.title}".`);
|
||||||
}
|
}
|
||||||
if (![16097, 16098].includes(file.networkgroupid)) {
|
if (![16068, 16097].includes(file.networkgroupid)) {
|
||||||
throw new Error(`Expected networkgroupid 16097 or 16098 but it was "${file.networkgroupid}".`);
|
throw new Error(`Expected networkgroupid 16068 or 16097 but it was "${file.networkgroupid}".`);
|
||||||
}
|
}
|
||||||
if (file.reliable !== `http://cdn-patch.swtor.com/patch/${product}/${product}_${from}to${to}/`) {
|
if (file.reliable !== `http://cdn-patch.swtor.com/patch/${product}/${product}_${from}to${to}/`) {
|
||||||
throw new Error(`Expected reliable URL but it was "${file.reliable}".`);
|
throw new Error(`Expected reliable URL but it was "${file.reliable}".`);
|
||||||
|
|
Loading…
Reference in a new issue