Prevent exception when a diff line is falsy
This commit is contained in:
parent
ae79a59639
commit
ad4e35f452
1 changed files with 3 additions and 0 deletions
|
@ -223,6 +223,9 @@ Skin.prototype.compare_action = function() {
|
|||
res.push();
|
||||
var param = {}, leftLineNumber = rightLineNumber = 0;
|
||||
for (let line of diff) {
|
||||
if (!line) {
|
||||
continue;
|
||||
}
|
||||
if (line.deleted) {
|
||||
param.right = encode(line.value);
|
||||
param.leftStatus = 'added';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue