Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

lint

  • Loading branch information...
commit 54a4f99c4e0f3b6b3a0a5182c29051761a50bb2b 1 parent 1319835
isaacs isaacs authored
Showing with 6 additions and 5 deletions.
  1. +2 −2 lib/fs.js
  2. +4 −3 lib/readline.js
4 lib/fs.js
View
@@ -50,7 +50,7 @@ var O_SYNC = constants.O_SYNC || 0;
var O_TRUNC = constants.O_TRUNC || 0;
var O_WRONLY = constants.O_WRONLY || 0;
-var isWindows = process.platform === 'win32'
+var isWindows = process.platform === 'win32';
fs.Stats = binding.Stats;
@@ -1164,7 +1164,7 @@ var ReadStream = fs.ReadStream = function(path, options) {
}
if (this.fd !== null) {
- process.nextTick(function () {
+ process.nextTick(function() {
self._read();

Since this commit is about linting, it may be worth mentioning that jslint prefers to have that space in there :)

isaacs Owner
isaacs added a note

It's not worth mentioning, because we don't use jslint ;)

We use google's JS style linter. make jslint will run it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
});
return;
7 lib/readline.js
View
@@ -145,7 +145,7 @@ Interface.prototype._setRawMode = function(mode) {
if (typeof this.input.setRawMode === 'function') {
return this.input.setRawMode(mode);
}
-}
+};
Interface.prototype.prompt = function(preserveCursor) {
@@ -656,8 +656,9 @@ Interface.prototype._ttyWrite = function(s, key) {
self.pause();
self.emit('SIGCONT');
}
- // explictly re-enable "raw mode" and move the cursor to the correct
- // position. See https://github.com/joyent/node/issues/3295.
+ // explictly re-enable "raw mode" and move the cursor to
+ // the correct position.
+ // See https://github.com/joyent/node/issues/3295.
self._setRawMode(true);
self._refreshLine();
};
Ron Korving

Since this commit is about linting, it may be worth mentioning that jslint prefers to have that space in there :)

isaacs
Owner

It's not worth mentioning, because we don't use jslint ;)

We use google's JS style linter. make jslint will run it.

Please sign in to comment.
Something went wrong with that request. Please try again.