🎨 Fix typo

This commit is contained in:
C-3PO 2018-10-21 04:09:41 +02:00
parent a6c5204b50
commit 9a8a85bd59
Signed by: c3po
GPG key ID: 62993C4BB4D86F24

View file

@ -15,7 +15,7 @@ export default function verifyPatch(fileEntries: ISsnFileEntry[], product: Produ
const validLastFileAlternate = `Assets/${product}_version.txt`; const validLastFileAlternate = `Assets/${product}_version.txt`;
if (lastFile.name === validLastFileName) { if (lastFile.name === validLastFileName) {
if (lastFile.diffType !== SsnDiffType.NewFile) { if (lastFile.diffType !== SsnDiffType.NewFile) {
throw new Error(`Last file (.version file) must have diffType 0but it had diffType ${lastFile.diffType}.`); throw new Error(`Last file (.version file) must have diffType 0 but it had diffType ${lastFile.diffType}.`);
} }
} else if (lastFile.name === validLastFileAlternate) { } else if (lastFile.name === validLastFileAlternate) {
//In some early patches, the last file is *_version.txt and the second to last is *.version //In some early patches, the last file is *_version.txt and the second to last is *.version