Skip to content

Commit

Permalink
struct: remove semis
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed Jan 7, 2016
1 parent 54b72bd commit 6141a4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/struct.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ function set (buffer, offset, value) {
if (isStruct) {
// optimization: copy the buffer contents directly rather
// than going through the ref-struct constructor
value['ref.buffer'].copy(buffer, offset, 0, this.size);
value['ref.buffer'].copy(buffer, offset, 0, this.size)
} else {
if (offset > 0) {
buffer = buffer.slice(offset)
Expand Down Expand Up @@ -226,7 +226,7 @@ function defineProperty (name, type) {
// calculate the new size and field offsets
recalc(this)

Object.defineProperty(this.prototype, name, desc);
Object.defineProperty(this.prototype, name, desc)
}

function recalc (struct) {
Expand Down

0 comments on commit 6141a4a

Please # to comment.