Skip to content

Commit

Permalink
lint: standard
Browse files Browse the repository at this point in the history
  • Loading branch information
soldair committed Jan 16, 2019
1 parent b90c950 commit b265e31
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions lib/core/galois-field.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
var Buffer = require('../utils/buffer')

if(Buffer.alloc) {
var EXP_TABLE = Buffer.alloc(512)
var LOG_TABLE = Buffer.alloc(256)
var EXP_TABLE
var LOG_TABLE

if (Buffer.alloc) {
EXP_TABLE = Buffer.alloc(512)
LOG_TABLE = Buffer.alloc(256)
} else {
var EXP_TABLE = new Buffer(512)
var LOG_TABLE = new Buffer(256)
EXP_TABLE = new Buffer(512)
LOG_TABLE = new Buffer(256)
}
/**
* Precompute the log and anti-log tables for faster computation later
Expand Down

0 comments on commit b265e31

Please sign in to comment.