chore: eslint prefer-destructuring

This commit is contained in:
Peter Jaszkowiak
2021-02-06 14:10:15 -07:00
committed by Julian Lam
parent 8d1462ffd8
commit 23f212a4c0
143 changed files with 192 additions and 195 deletions

View File

@@ -37,7 +37,7 @@ SELECT COUNT(*) c
};
async function getSortedSetIntersect(params) {
const sets = params.sets;
const { sets } = params;
const start = params.hasOwnProperty('start') ? params.start : 0;
const stop = params.hasOwnProperty('stop') ? params.stop : -1;
let weights = params.weights || [];

View File

@@ -31,7 +31,7 @@ SELECT COUNT(DISTINCT z."value") c
};
async function getSortedSetUnion(params) {
const sets = params.sets;
const { sets } = params;
const start = params.hasOwnProperty('start') ? params.start : 0;
const stop = params.hasOwnProperty('stop') ? params.stop : -1;
let weights = params.weights || [];