DEV: removes unecessary casting (#9982)

This commit is contained in:
Joffrey JAFFEUX 2020-06-04 19:07:34 +02:00 committed by GitHub
parent de29b4a511
commit a23d31e4d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -52,9 +52,7 @@ function findTopicList(store, tracking, filter, filterParams, extras) {
// Clean up any string parameters that might slip through // Clean up any string parameters that might slip through
filterParams = filterParams || {}; filterParams = filterParams || {};
Object.keys(filterParams).forEach(k => { Object.keys(filterParams).forEach(k => {
let val = filterParams[k]; const val = filterParams[k];
if (val === "false") val = false;
if (val === "true") val = true;
if (val === "undefined" || val === "null") { if (val === "undefined" || val === "null") {
filterParams[k] = null; filterParams[k] = null;
} }