Add undefined check to getChangeFilePathsAsSpeciallySortedArray
Change-Id: I7a18d100e475a415b7d316435c5a6a545e689236
This commit is contained in:
@@ -1267,6 +1267,7 @@
|
||||
*/
|
||||
getChangeFilePathsAsSpeciallySortedArray(changeNum, patchRange) {
|
||||
return this.getChangeFiles(changeNum, patchRange).then(files => {
|
||||
if (!files) return;
|
||||
return Object.keys(files).sort(this.specialFilePathCompare);
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user