Fix up linting warnings

- Mix of tabs and spaces
- Trailing whitepsace
- Missing semi-colons
This commit is contained in:
Alex Whitman
2013-08-17 10:31:55 +01:00
parent f1a8a7269f
commit 1dc6243b75
+17 -17
View File
@@ -60,20 +60,20 @@ exports.compile = function(args, next) {
* 5. bundle it all together
*/
on.success(function() {
console.log("building node.js");
this.node.make(this);
}),
on.success(function() {
console.log("building node.js");
this.node.make(this);
}),
/**
* 6. copy the executable
*/
/**
* 6. copy the executable
*/
on.success(function() {
console.log("copying binary to output directory to %s", args.output);
on.success(function() {
console.log("copying binary to output directory to %s", args.output);
mkdirp(path.dirname(args.output), this);
}),
mkdirp(path.dirname(args.output), this);
}),
/**
*/
@@ -87,8 +87,8 @@ exports.compile = function(args, next) {
next
)
}
);
};
/**
*/
@@ -100,7 +100,7 @@ function downloadNode(version, next) {
try {
mkdirp.sync(path.dirname(tmpPath))
mkdirp.sync(path.dirname(tmpPath));
//an error will usually occur when the dir already exists.
} catch(e) { }
@@ -164,7 +164,7 @@ function downloadNode(version, next) {
make: function(next) {
var proc = exec(sprintf("cd %s; ./configure; make; ", srcDr));
proc.stdout._events = {}; //remove stdout & stdin capture
proc.stdin._events = {};
proc.stdin._events = {};
proc.stdout.on("data", function(chunk) {
process.stdout.write(chunk);
});
@@ -207,7 +207,7 @@ function monkeyPatchNodejs(node, next) {
//nexe already injected?
if(~content.indexOf('nexe')) return this();
fs.writeFile(nodejsPath,
fs.writeFile(nodejsPath,
content.replace(/\(function\(process\) \{/,'(function(process){ \n process._eval = \'require("nexe");\'; '),
"utf8",
this);
@@ -241,4 +241,4 @@ function monkeyPatchNodejs(node, next) {
next
);
}
}