Removed require() alignment and added Egyptian casing ;-)

This commit is contained in:
Jesús Leganés Combarro "piranna 2015-10-15 23:20:00 +02:00
parent b32e9b6b39
commit 683a518448

View file

@ -19,8 +19,7 @@ var overflow = function(self, size) {
if (size) self.push(END_OF_TAR.slice(0, 512 - size)) if (size) self.push(END_OF_TAR.slice(0, 512 - size))
} }
function mode2type(mode) function mode2type(mode) {
{
switch (mode & constants.S_IFMT) { switch (mode & constants.S_IFMT) {
case constants.S_IFBLK: return 'block-device' case constants.S_IFBLK: return 'block-device'
case constants.S_IFCHR: return 'character-device' case constants.S_IFCHR: return 'character-device'
@ -117,13 +116,11 @@ Pack.prototype.entry = function(header, buffer, callback) {
var stream = new Writable var stream = new Writable
var linkname = '' var linkname = ''
stream._write = function(data, enc, cb) stream._write = function(data, enc, cb) {
{
linkname += data linkname += data
cb() cb()
} }
eos(stream, function(err) eos(stream, function(err) {
{
if (err) { // stream was closed if (err) { // stream was closed
self.destroy() self.destroy()
return callback(err) return callback(err)