Fix eslint errors in memory connector

This commit is contained in:
Miroslav Bajtoš 2016-04-18 15:56:45 +02:00
parent a5187765f6
commit 4000b70e38
1 changed files with 5 additions and 7 deletions

View File

@ -526,8 +526,7 @@ function applyFilter(filter) {
regex += '\\.';
} else if (char === '*') {
regex += '\\*';
}
else {
} else {
regex += char;
}
}
@ -568,12 +567,11 @@ function applyFilter(filter) {
}
if ('between' in example) {
return (testInEquality({ gte:example.between[0] }, value) &&
testInEquality({ lte:example.between[1] }, value));
return (testInEquality({ gte: example.between[0] }, value) &&
testInEquality({ lte: example.between[1] }, value));
}
if (example.like || example.nlike) {
var like = example.like || example.nlike;
if (typeof like === 'string') {
like = toRegExp(like);
@ -592,8 +590,8 @@ function applyFilter(filter) {
}
}
// not strict equality
return (example !== null ? example.toString() : example)
== (value != null ? value.toString() : value);
return (example !== null ? example.toString() : example) ==
(value != null ? value.toString() : value);
}
/**