Skip to content

Commit

Permalink
apply @scottinet comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Aschen committed Apr 22, 2019
1 parent 14b2feb commit 8c550e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/services/elasticsearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ class ElasticSearch extends Service {
throw new BadRequestError(`Invalid includeKuzzleInfo value ${request.input.args.includeKuzzleInfo}: boolean expected`);
}

const includeKuzzleInfo = Boolean(request.input.args.includeKuzzleInfo);
const includeKuzzleInfo = request.input.args.includeKuzzleInfo !== undefined ? true : false;

return this.esWrapper.getMapping(esRequest, includeKuzzleInfo);
}
Expand Down

0 comments on commit 8c550e5

Please sign in to comment.