Skip to content

Commit

Permalink
fix(vendor.roborock): calculation of max elements for virtual restric…
Browse files Browse the repository at this point in the history
…tions (#681)
  • Loading branch information
ccoors committed Feb 7, 2021
1 parent bef609e commit 2e4421b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class RoborockCombinedVirtualRestrictionsCapability extends CombinedVirtualRestr
});

if (roborockPayload.reduce((total, currentElem) => {
return total += currentElem.length - 1;
return total + currentElem.length - 1;
}, 0) > 68) {
throw new Error("too many forbidden markers to save!");
}
Expand Down

0 comments on commit 2e4421b

Please sign in to comment.