mirror of
https://github.com/status-im/QR-Code-generator.git
synced 2026-08-31 01:31:10 +00:00
Simplified small pieces of TypeScript and JavaScript code.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user