no-lonely-if
This commit is contained in:
@@ -47,7 +47,7 @@
|
||||
"import/no-extraneous-dependencies": 0,
|
||||
"camelcase": 0,
|
||||
"eqeqeq": 0,
|
||||
"no-lonely-if": 0,
|
||||
// "no-lonely-if": 0,
|
||||
"space-unary-ops": 0,
|
||||
"no-extra-bind": 0,
|
||||
"class-methods-use-this": 0,
|
||||
|
@@ -60,12 +60,10 @@ define([
|
||||
templateResult: function (item) {
|
||||
if (item.element && item.element.selected) {
|
||||
return null;
|
||||
} else if (item.title) {
|
||||
return item.title;
|
||||
} else {
|
||||
if (item.title) {
|
||||
return item.title;
|
||||
} else {
|
||||
return item.text;
|
||||
}
|
||||
return item.text;
|
||||
}
|
||||
},
|
||||
});
|
||||
|
Reference in New Issue
Block a user