Removed require() alignment and added Egyptian casing ;-)
This commit is contained in:
parent
b32e9b6b39
commit
683a518448
1 changed files with 7 additions and 10 deletions
9
pack.js
9
pack.js
|
@ -19,8 +19,7 @@ var overflow = function(self, size) {
|
|||
if (size) self.push(END_OF_TAR.slice(0, 512 - size))
|
||||
}
|
||||
|
||||
function mode2type(mode)
|
||||
{
|
||||
function mode2type(mode) {
|
||||
switch (mode & constants.S_IFMT) {
|
||||
case constants.S_IFBLK: return 'block-device'
|
||||
case constants.S_IFCHR: return 'character-device'
|
||||
|
@ -117,13 +116,11 @@ Pack.prototype.entry = function(header, buffer, callback) {
|
|||
var stream = new Writable
|
||||
var linkname = ''
|
||||
|
||||
stream._write = function(data, enc, cb)
|
||||
{
|
||||
stream._write = function(data, enc, cb) {
|
||||
linkname += data
|
||||
cb()
|
||||
}
|
||||
eos(stream, function(err)
|
||||
{
|
||||
eos(stream, function(err) {
|
||||
if (err) { // stream was closed
|
||||
self.destroy()
|
||||
return callback(err)
|
||||
|
|
Loading…
Reference in a new issue