Simplified small pieces of TypeScript and JavaScript code.

This commit is contained in:
Project Nayuki
2018-08-31 17:00:52 +00:00
parent 0b89eef361
commit 0a96eec52e
2 changed files with 3 additions and 9 deletions
+1 -4
View File
@@ -329,10 +329,7 @@ var qrcodegen = new function() {
var ecc = rs.getRemainder(dat);
if (i < numShortBlocks)
dat.push(0);
ecc.forEach(function(b) {
dat.push(b);
});
blocks.push(dat);
blocks.push(dat.concat(ecc));
}
// Interleave (not concatenate) the bytes from every block into a single sequence