summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/tar/lib/buffer-entry.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/tar/lib/buffer-entry.js')
-rw-r--r--deps/npm/node_modules/tar/lib/buffer-entry.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/deps/npm/node_modules/tar/lib/buffer-entry.js b/deps/npm/node_modules/tar/lib/buffer-entry.js
index 5322a28ab..6c1da2373 100644
--- a/deps/npm/node_modules/tar/lib/buffer-entry.js
+++ b/deps/npm/node_modules/tar/lib/buffer-entry.js
@@ -20,11 +20,11 @@ function BufferEntry () {
})
}
+inherits(BufferEntry, Entry)
+
// collect the bytes as they come in.
BufferEntry.prototype.write = function (c) {
c.copy(this._buffer, this._offset)
this._offset += c.length
Entry.prototype.write.call(this, c)
}
-
-inherits(BufferEntry, Entry)