Fix eslint errors in memory connector
This commit is contained in:
parent
a5187765f6
commit
4000b70e38
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue