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;
|
||||
if (!optionsPart.hasOwnProperty(optionName)) { return; }
|
||||
value = optionsPart[optionName];
|
||||
switch (optionName) { // eslint-disable-line default-case
|
||||
switch (optionName) {
|
||||
// _readlineSync <- * * -> defaultOptions
|
||||
// ================ string
|
||||
case 'mask': // * *
|
||||
|
@ -533,6 +533,7 @@ function margeOptions() {
|
|||
case 'display': // *
|
||||
options[optionName] = value != null ? value : ''; // eslint-disable-line eqeqeq
|
||||
break;
|
||||
// no default
|
||||
}
|
||||
});
|
||||
return options;
|
||||
|
@ -771,7 +772,7 @@ function getValidLine(options) {
|
|||
|
||||
if (!forceNext && options.cd && res) {
|
||||
args = parseCl(res);
|
||||
switch (args[0].toLowerCase()) { // eslint-disable-line default-case
|
||||
switch (args[0].toLowerCase()) {
|
||||
case 'cd':
|
||||
if (args[1]) {
|
||||
try {
|
||||
|
@ -786,6 +787,7 @@ function getValidLine(options) {
|
|||
addDisplay(process.cwd());
|
||||
forceNext = true;
|
||||
break;
|
||||
// no default
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue