Fix: comments for ESLint
This commit is contained in:
parent
a7555c2aac
commit
66d294e992
1 changed files with 4 additions and 2 deletions
|
@ -483,7 +483,7 @@ function margeOptions() {
|
||||||
var value;
|
var value;
|
||||||
if (!optionsPart.hasOwnProperty(optionName)) { return; }
|
if (!optionsPart.hasOwnProperty(optionName)) { return; }
|
||||||
value = optionsPart[optionName];
|
value = optionsPart[optionName];
|
||||||
switch (optionName) { // eslint-disable-line default-case
|
switch (optionName) {
|
||||||
// _readlineSync <- * * -> defaultOptions
|
// _readlineSync <- * * -> defaultOptions
|
||||||
// ================ string
|
// ================ string
|
||||||
case 'mask': // * *
|
case 'mask': // * *
|
||||||
|
@ -533,6 +533,7 @@ function margeOptions() {
|
||||||
case 'display': // *
|
case 'display': // *
|
||||||
options[optionName] = value != null ? value : ''; // eslint-disable-line eqeqeq
|
options[optionName] = value != null ? value : ''; // eslint-disable-line eqeqeq
|
||||||
break;
|
break;
|
||||||
|
// no default
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return options;
|
return options;
|
||||||
|
@ -771,7 +772,7 @@ function getValidLine(options) {
|
||||||
|
|
||||||
if (!forceNext && options.cd && res) {
|
if (!forceNext && options.cd && res) {
|
||||||
args = parseCl(res);
|
args = parseCl(res);
|
||||||
switch (args[0].toLowerCase()) { // eslint-disable-line default-case
|
switch (args[0].toLowerCase()) {
|
||||||
case 'cd':
|
case 'cd':
|
||||||
if (args[1]) {
|
if (args[1]) {
|
||||||
try {
|
try {
|
||||||
|
@ -786,6 +787,7 @@ function getValidLine(options) {
|
||||||
addDisplay(process.cwd());
|
addDisplay(process.cwd());
|
||||||
forceNext = true;
|
forceNext = true;
|
||||||
break;
|
break;
|
||||||
|
// no default
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue