summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2012-06-11 07:48:02 -0700
committerisaacs <i@izs.me>2012-06-11 08:13:36 -0700
commit54a4f99c4e0f3b6b3a0a5182c29051761a50bb2b (patch)
tree11f2d936dcd3aa4ae52df25f2b6a52b70d1de649 /lib
parent13198357e9973c6d29283ca7d69d57f5986b9474 (diff)
downloadnode-54a4f99c4e0f3b6b3a0a5182c29051761a50bb2b.tar.gz
lint
Diffstat (limited to 'lib')
-rw-r--r--lib/fs.js4
-rw-r--r--lib/readline.js7
2 files changed, 6 insertions, 5 deletions
diff --git a/lib/fs.js b/lib/fs.js
index 65df0be35..d6f195afe 100644
--- a/lib/fs.js
+++ b/lib/fs.js
@@ -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();
});
return;
diff --git a/lib/readline.js b/lib/readline.js
index 02d15527c..df0d92bba 100644
--- a/lib/readline.js
+++ b/lib/readline.js
@@ -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();
};