From c766290bf735361ba4d81365d6618734683c062f Mon Sep 17 00:00:00 2001 From: jos Date: Wed, 11 Dec 2019 17:12:37 +0100 Subject: [PATCH] Fix linting issues --- src/js/jmespathQuery.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/jmespathQuery.js b/src/js/jmespathQuery.js index 68128b6..a9f6b23 100644 --- a/src/js/jmespathQuery.js +++ b/src/js/jmespathQuery.js @@ -13,7 +13,7 @@ export function createQuery (json, queryOptions) { const { sort, filter, projection } = queryOptions let query = '' - if (!!filter) { + if (filter) { const examplePath = filter.field !== '@' ? ['0'].concat(parsePath('.' + filter.field)) : ['0'] @@ -33,7 +33,7 @@ export function createQuery (json, queryOptions) { : '@' } - if (!!sort) { + if (sort) { if (sort.direction === 'desc') { query += ' | reverse(sort_by(@, &' + sort.field + '))' } else { @@ -41,7 +41,7 @@ export function createQuery (json, queryOptions) { } } - if (!!projection) { + if (projection) { if (query[query.length - 1] !== ']') { query += ' | [*]' }