lint readline.js - single-quotes preferred
This commit is contained in:
parent
4b1d492561
commit
81cd3a3cd6
@ -48,7 +48,7 @@ function Interface(input, output, completer) {
|
|||||||
completer = completer || function() { return []; };
|
completer = completer || function() { return []; };
|
||||||
|
|
||||||
if (typeof completer !== 'function') {
|
if (typeof completer !== 'function') {
|
||||||
throw new TypeError("Argument 'completer' must be a function");
|
throw new TypeError('Argument \'completer\' must be a function');
|
||||||
}
|
}
|
||||||
|
|
||||||
var self = this;
|
var self = this;
|
||||||
@ -207,7 +207,7 @@ Interface.prototype._refreshLine = function() {
|
|||||||
|
|
||||||
// Force terminal to allocate a new line
|
// Force terminal to allocate a new line
|
||||||
if (lineCols === 0) {
|
if (lineCols === 0) {
|
||||||
this.output.write(" ");
|
this.output.write(' ');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Move cursor to original position.
|
// Move cursor to original position.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user