Add undefined check to getChangeFilePathsAsSpeciallySortedArray

Change-Id: I7a18d100e475a415b7d316435c5a6a545e689236
This commit is contained in:
Paladox none
2019-10-25 19:04:23 +00:00
parent e021c04daf
commit 8eff735544

View File

@@ -1267,6 +1267,7 @@
*/
getChangeFilePathsAsSpeciallySortedArray(changeNum, patchRange) {
return this.getChangeFiles(changeNum, patchRange).then(files => {
if (!files) return;
return Object.keys(files).sort(this.specialFilePathCompare);
});
},