Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Jun 11, 2012
1 parent 1319835 commit 54a4f99
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/fs.js
Expand Up @@ -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;

Expand Down Expand Up @@ -1164,7 +1164,7 @@ var ReadStream = fs.ReadStream = function(path, options) {
}

if (this.fd !== null) {
process.nextTick(function () {
process.nextTick(function() {
self._read();

This comment has been minimized.

Copy link
@ronkorving

ronkorving Jun 17, 2012

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

This comment has been minimized.

Copy link
@isaacs

isaacs Jun 17, 2012

Author

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

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

});
return;
Expand Down
7 changes: 4 additions & 3 deletions lib/readline.js
Expand Up @@ -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) {
Expand Down Expand Up @@ -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();
};
Expand Down

0 comments on commit 54a4f99

Please sign in to comment.