ESlint no-useless-escape, no-else-return

This commit is contained in:
Peter Jaszkowiak
2017-02-18 14:27:26 -07:00
parent 11cb3a9554
commit 09e868ce5f
27 changed files with 86 additions and 118 deletions

View File

@@ -207,10 +207,10 @@ module.exports = function (redisClient, module) {
maxmax = '+';
}
if (min !== minmin && !min.match(/^[\[\(]/)) {
if (min !== minmin && !min.match(/^[[(]/)) {
min = '[' + min;
}
if (max !== maxmax && !max.match(/^[\[\(]/)) {
if (max !== maxmax && !max.match(/^[[(]/)) {
max = '[' + max;
}